diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index fdcc0287f..b05efddd7 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -30,4 +30,4 @@ jobs: pip install -e '.[testing]' - name: Test with pytest run: | - pytest --cov=src/datajunction -vv tests/ --doctest-modules src/datajunction + pytest --cov-fail-under=100 --cov=src/datajunction -vv tests/ --doctest-modules src/datajunction diff --git a/src/datajunction/utils.py b/src/datajunction/utils.py index 509201f49..44cb97350 100644 --- a/src/datajunction/utils.py +++ b/src/datajunction/utils.py @@ -78,7 +78,7 @@ def get_session() -> Iterator[Session]: """ engine = get_engine() - with Session(engine, autoflush=False) as session: + with Session(engine, autoflush=False) as session: # pragma: no cover yield session