diff --git a/requirements-light.txt b/requirements-light.txt deleted file mode 100644 index f105052..0000000 --- a/requirements-light.txt +++ /dev/null @@ -1,12 +0,0 @@ -temporalio -psycopg2-binary -sqlalchemy -asyncua -redis -git+ssh://git@github.com/Aignosi/sientia-dataops-library.git@1.12.0 -prometheus-client -botocore -boto3 -s3fs -pyarrow -mlflow \ No newline at end of file diff --git a/tests/conftest.py b/tests/conftest.py index e46ac68..eb23f39 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,6 +3,19 @@ import os from sientia_do.temporal.activities.postgres_sync import Postgres +def _noop_postgres_del(_self): + """ + Unit tests use MagicMock metrics controllers; postgres_sync.Postgres.__del__ calls + close() during GC and triggers async shutdown. Explicit ``close()`` is covered in tests. + """ + return None + + +Postgres.__del__ = _noop_postgres_del # type: ignore[method-assign] + +from sientia_do.temporal.activities.postgres_sync import Postgres + + def _noop_postgres_del(_self): """ Unit tests use MagicMock metrics controllers; postgres_sync.Postgres.__del__ calls