Rename directory
This commit is contained in:
parent
c204ac6ea3
commit
ea4750a023
|
@ -1,6 +1,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import src.main as snapbin
|
import snapbin.main as snapbin
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
tests = pkgs.writeShellScriptBin "python-test" ''
|
tests = pkgs.writeShellScriptBin "python-test" ''
|
||||||
trap "process-compose down &> /dev/null" EXIT
|
trap "process-compose down &> /dev/null" EXIT
|
||||||
process-compose up --tui=false &
|
process-compose up --tui=false &
|
||||||
pytest --cov=src tests.py
|
pytest --cov=snapbin tests.py
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
processes = {
|
processes = {
|
||||||
webserver = {
|
webserver = {
|
||||||
process-compose.depends_on.redis.condition = "process_started";
|
process-compose.depends_on.redis.condition = "process_started";
|
||||||
exec = "gunicorn src.main:app";
|
exec = "gunicorn snapbin.main:app";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.redis.enable = true;
|
services.redis.enable = true;
|
||||||
|
|
2
tests.py
2
tests.py
|
@ -8,7 +8,7 @@ from freezegun import freeze_time
|
||||||
from werkzeug.exceptions import BadRequest
|
from werkzeug.exceptions import BadRequest
|
||||||
|
|
||||||
# noinspection PyPep8Naming
|
# noinspection PyPep8Naming
|
||||||
import src.main as snapbin
|
import snapbin.main as snapbin
|
||||||
|
|
||||||
|
|
||||||
def test_get_password():
|
def test_get_password():
|
||||||
|
|
Loading…
Reference in New Issue