Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed May 6, 2024
1 parent 9e0662d commit c1d9ea4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ def settings() -> config.ArpavPpcvSettings:

@pytest.fixture
def app(settings):
app = create_app_from_settings(settings)
app.dependency_overrides[dependencies.get_db_session] = _override_get_db_session
app.dependency_overrides[dependencies.get_db_engine] = _override_get_db_engine
app.dependency_overrides[dependencies.get_settings] = _override_get_settings
yield app
yield create_app_from_settings(settings)


@pytest.fixture
Expand Down

0 comments on commit c1d9ea4

Please sign in to comment.