mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
misc: Separate tests folder from backend code
Create separate `tests/` folder for all tests. This will also simplify not copying tests code into the Docker image.
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
from handler.tests.conftest import ( # noqa
|
||||
admin_user,
|
||||
clear_database,
|
||||
platform,
|
||||
rom,
|
||||
setup_database,
|
||||
)
|
||||
@@ -1,7 +0,0 @@
|
||||
from handler.tests.conftest import ( # noqa
|
||||
admin_user,
|
||||
clear_database,
|
||||
editor_user,
|
||||
setup_database,
|
||||
viewer_user,
|
||||
)
|
||||
@@ -1,6 +0,0 @@
|
||||
from handler.tests.conftest import ( # noqa
|
||||
admin_user,
|
||||
clear_database,
|
||||
editor_user,
|
||||
setup_database,
|
||||
)
|
||||
@@ -1,12 +0,0 @@
|
||||
from handler.tests.conftest import ( # noqa
|
||||
admin_user,
|
||||
clear_database,
|
||||
editor_user,
|
||||
platform,
|
||||
rom,
|
||||
save,
|
||||
screenshot,
|
||||
setup_database,
|
||||
state,
|
||||
viewer_user,
|
||||
)
|
||||
@@ -1,5 +1,6 @@
|
||||
[pytest]
|
||||
asyncio_mode = auto
|
||||
testpaths = tests
|
||||
env =
|
||||
ROMM_BASE_PATH=romm_test
|
||||
DB_NAME=romm_test
|
||||
|
||||
@@ -1,20 +1,8 @@
|
||||
from datetime import timedelta
|
||||
|
||||
import pytest
|
||||
from endpoints.auth import ACCESS_TOKEN_EXPIRE_MINUTES, REFRESH_TOKEN_EXPIRE_DAYS
|
||||
from handler.auth import oauth_handler
|
||||
from handler.tests.conftest import ( # noqa
|
||||
admin_user,
|
||||
clear_database,
|
||||
editor_user,
|
||||
platform,
|
||||
rom,
|
||||
save,
|
||||
setup_database,
|
||||
state,
|
||||
viewer_user,
|
||||
)
|
||||
|
||||
from ..auth import ACCESS_TOKEN_EXPIRE_MINUTES, REFRESH_TOKEN_EXPIRE_DAYS
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
0
backend/tests/tasks/__init__.py
Normal file
0
backend/tests/tasks/__init__.py
Normal file
Reference in New Issue
Block a user