We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 647ee39 + 00f30b5 commit 28b940bCopy full SHA for 28b940b
tests/conftest.py
@@ -1,12 +1,12 @@
1
import os
2
3
-from freenit import create_app
+import pytest
4
from peewee_migrate import Router
5
from peewee_migrate.router import DEFAULT_MIGRATE_DIR
6
from pytest_factoryboy import register
7
8
-import pytest
9
from config import configs
+from freenit import create_app
10
11
from .factories import AdminFactory, RoleFactory, UserFactory
12
@@ -17,7 +17,7 @@
17
18
@pytest.fixture
19
def app():
20
- dbtype = os.environ['DBTYPE']
+ dbtype = os.environ.get('DBTYPE', 'sql')
21
config = configs['testing']
22
flask_app = create_app(config, dbtype=dbtype)
23
if dbtype == 'sql':
0 commit comments