Skip to content

Conversation

@efunneko
Copy link
Collaborator

@efunneko efunneko commented Feb 3, 2026

Summary

  • Changed webui_api_client fixture from function-scoped to session-scoped to avoid ~800ms TestClient teardown overhead per test
  • The underlying FastAPI app is already session-scoped, so the TestClient can safely be reused across tests

Test plan

  • Ran declarative tests: 7 tests went from ~15.8s to ~10.7s (saved ~5s)
  • CI should pass with no test regressions

Jira

DATAGO-123990

Changed webui_api_client fixture from function-scoped to session-scoped
to avoid ~800ms TestClient teardown overhead per test. This reduces
total test time for declarative tests from ~15.8s to ~10.7s (7 tests).

The underlying FastAPI app is already session-scoped, so the TestClient
can safely be reused across tests without side effects.

Signed-off-by: Edward Funnekotter <[email protected]>
@efunneko efunneko requested a review from amir-ghasemi February 3, 2026 16:38
@sonarqube-solacecloud
Copy link

@efunneko efunneko enabled auto-merge (squash) February 10, 2026 18:42
Copy link
Collaborator

@RohanSreelesh RohanSreelesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@efunneko efunneko merged commit 6a02e06 into main Feb 10, 2026
26 checks passed
@efunneko efunneko deleted the ed/faster-tests branch February 10, 2026 18:45
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.

2 participants