diff --git a/.coveragerc b/.coveragerc index 1f2be51..3342379 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,7 +4,7 @@ source = . omit = # TODO - app.py + dp_creator_ii/app/* # More strict: Check transitions between lines, not just individual lines. # TODO: branch = True diff --git a/dp_creator_ii/__init__.py b/dp_creator_ii/__init__.py index be09255..0a084e7 100644 --- a/dp_creator_ii/__init__.py +++ b/dp_creator_ii/__init__.py @@ -42,7 +42,7 @@ def main(): # pragma: no cover # Just setting variables in a plain python module doesn't work: # The new thread started for the server doesn't see changes. - Path("config.json").write_text( + Path("app/config.json").write_text( json.dumps( { "csv_path": str(args.csv_path), diff --git a/dp_creator_ii/app.py b/dp_creator_ii/app/__init__.py similarity index 100% rename from dp_creator_ii/app.py rename to dp_creator_ii/app/__init__.py diff --git a/dp_creator_ii/tests/test_app.py b/dp_creator_ii/tests/test_app.py index ec1ea58..684af42 100644 --- a/dp_creator_ii/tests/test_app.py +++ b/dp_creator_ii/tests/test_app.py @@ -3,7 +3,7 @@ from shiny.pytest import create_app_fixture -app = create_app_fixture("../app.py") +app = create_app_fixture("../app/__init__.py") # TODO: Why is incomplete coverage reported here?