mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
pytest.ini
This commit is contained in:
parent
f10947699e
commit
154b820b29
2 changed files with 12 additions and 1 deletions
12
.github/workflows/unit_tests.yml
vendored
12
.github/workflows/unit_tests.yml
vendored
|
|
@ -60,3 +60,15 @@ jobs:
|
|||
-e DB_PASSWORD=test \
|
||||
-e DB_PORT=5432 \
|
||||
model-test pytest -vv -m 'not integration'
|
||||
|
||||
# The DDD rewrite (tests/) defines SQLModel table classes that map to the
|
||||
# same physical tables as the legacy backend models. Both sets share the
|
||||
# one global SQLModel.metadata, so they cannot be imported into the same
|
||||
# pytest process. It runs as a separate invocation until the legacy
|
||||
# models are retired. Its DB is spawned in-process by pytest-postgresql,
|
||||
# so no DB service or env is required.
|
||||
- name: Run DDD tests
|
||||
run: |
|
||||
docker run --rm \
|
||||
--network host \
|
||||
model-test pytest -vv tests/
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ log_cli = true
|
|||
log_cli_level = INFO
|
||||
addopts = --cov-report term-missing --cov=etl/epc --cov=recommendations --cov=backend --cov=etl/epc_clean --cov=etl/spatial
|
||||
testpaths =
|
||||
tests
|
||||
recommendations/tests
|
||||
backend/tests
|
||||
backend/address2UPRN/tests
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue