Skip to content

Commit

Permalink
tests: add settings pytest fixture
Browse files Browse the repository at this point in the history
also there is no need to do anything in the app fixture so move import back up
  • Loading branch information
robvdl committed Mar 7, 2024
1 parent 817bdff commit 8d3b8c0
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
import webtest
from pyramid.scripting import prepare

import sambal


@pytest.fixture(scope="session")
def app():
"""Fixtures that returns the Sambal WSGI app.
def settings():
"""Fixture that returns the Pyramid settings dict."""
return sambal.SETTINGS

We can inject env vars here if necessary, but only before the import.
"""
import sambal

@pytest.fixture(scope="session")
def app():
"""Fixtures that returns the Sambal WSGI app."""
return sambal.app


Expand Down

0 comments on commit 8d3b8c0

Please sign in to comment.