Skip to content

Commit

Permalink
Always use "test" environment in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mekanix committed Jun 9, 2022
1 parent 644b6f3 commit 79cc10a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions freenit/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from fastapi import FastAPI

import freenit.config

from .api import api
from .config import getConfig

config = getConfig()
config = freenit.config.getConfig()
app = FastAPI()


Expand Down
2 changes: 1 addition & 1 deletion freenit/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.2.23"
version = "0.2.24"
2 changes: 2 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

alembic_cfg = Config("alembic.ini")

os.environ["FREENIT_ENV"] = "test"


@pytest.fixture
def db_setup():
Expand Down

0 comments on commit 79cc10a

Please sign in to comment.