diff --git a/conftest.py b/conftest.py index 68536bd..b974c7a 100644 --- a/conftest.py +++ b/conftest.py @@ -1,6 +1,6 @@ import pytest -import src.main as snapbin +import snapbin.main as snapbin @pytest.fixture() diff --git a/flake.nix b/flake.nix index 4b245db..1186124 100644 --- a/flake.nix +++ b/flake.nix @@ -29,7 +29,7 @@ tests = pkgs.writeShellScriptBin "python-test" '' trap "process-compose down &> /dev/null" EXIT process-compose up --tui=false & - pytest --cov=src tests.py + pytest --cov=snapbin tests.py ''; in { @@ -57,7 +57,7 @@ processes = { webserver = { process-compose.depends_on.redis.condition = "process_started"; - exec = "gunicorn src.main:app"; + exec = "gunicorn snapbin.main:app"; }; }; services.redis.enable = true; diff --git a/src/__init__.py b/snapbin/__init__.py similarity index 100% rename from src/__init__.py rename to snapbin/__init__.py diff --git a/src/main.py b/snapbin/main.py similarity index 100% rename from src/main.py rename to snapbin/main.py diff --git a/src/utils.py b/snapbin/utils.py similarity index 100% rename from src/utils.py rename to snapbin/utils.py diff --git a/tests.py b/tests.py index b233528..8f555f6 100644 --- a/tests.py +++ b/tests.py @@ -8,7 +8,7 @@ from freezegun import freeze_time from werkzeug.exceptions import BadRequest # noinspection PyPep8Naming -import src.main as snapbin +import snapbin.main as snapbin def test_get_password():