Skip to content

Fix/test session isolation and mocks#675

Open
ashishmistry36 wants to merge 2 commits into
swar:masterfrom
ashishmistry36:fix/test-session-isolation-and-mocks
Open

Fix/test session isolation and mocks#675
ashishmistry36 wants to merge 2 commits into
swar:masterfrom
ashishmistry36:fix/test-session-isolation-and-mocks

Conversation

@ashishmistry36
Copy link
Copy Markdown

Resolves 3 existing unit test failures on master related to session isolation and unmocked endpoint URL tests.

  • Modified the NBAHTTP.get_session/set_session to explicitly reference NBAHTTP._session to prevent subclasses from shadowing the global session and leaking the state
  • Added the nba_http_patch fixture to the signatures of live boxscore and live odds tests to ensure they are fully mocked and isolated from the CDN network.

@ashishmistry36 ashishmistry36 requested a review from swar as a code owner May 19, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant