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:
Michael Manganiello
2025-08-08 12:49:13 -03:00
parent ee44a5c788
commit ba21cbc1e1
94 changed files with 2 additions and 45 deletions

View File

@@ -1,7 +0,0 @@
from handler.tests.conftest import ( # noqa
admin_user,
clear_database,
platform,
rom,
setup_database,
)

View File

@@ -1,7 +0,0 @@
from handler.tests.conftest import ( # noqa
admin_user,
clear_database,
editor_user,
setup_database,
viewer_user,
)

View File

@@ -1,6 +0,0 @@
from handler.tests.conftest import ( # noqa
admin_user,
clear_database,
editor_user,
setup_database,
)

View File

@@ -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,
)

View File

@@ -1,5 +1,6 @@
[pytest]
asyncio_mode = auto
testpaths = tests
env =
ROMM_BASE_PATH=romm_test
DB_NAME=romm_test

View File

@@ -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()

View File