Skip to content

Commit

Permalink
Use the settings from the ini file for test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
davismr committed Jan 9, 2025
1 parent 3a0b503 commit ad5f0cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

@pytest.fixture(scope="session")
def testapp():
engine = engine_from_config({"sqlalchemy.url": "sqlite:///:memory:"}, "sqlalchemy.")
settings = {"wfrp.character.enable_auth": False}
settings = get_appsettings("development.ini", name="main")
settings["sqlalchemy.url"] = "sqlite:///:memory:"
engine = engine_from_config(settings, "sqlalchemy.")
config = testing.setUp(settings=settings)
config.add_request_method(dbsession, reify=True)
config.set_security_policy(
Expand Down

0 comments on commit ad5f0cd

Please sign in to comment.