diff --git a/swh/__init__.py b/swh/__init__.py new file mode 100644 index 0000000..69e3be5 --- /dev/null +++ b/swh/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/sandbox/__init__.py b/swh/sandbox/__init__.py similarity index 100% rename from sandbox/__init__.py rename to swh/sandbox/__init__.py diff --git a/sandbox/tests/__init__.py b/swh/sandbox/tests/__init__.py similarity index 100% rename from sandbox/tests/__init__.py rename to swh/sandbox/tests/__init__.py diff --git a/sandbox/tests/test_towel_day.py b/swh/sandbox/tests/test_towel_day.py similarity index 84% rename from sandbox/tests/test_towel_day.py rename to swh/sandbox/tests/test_towel_day.py index 2563eb9..4f40720 100644 --- a/sandbox/tests/test_towel_day.py +++ b/swh/sandbox/tests/test_towel_day.py @@ -1,8 +1,8 @@ from datetime import datetime -from sandbox import is_towel_day +from swh.sandbox import is_towel_day def test_towel_day(): assert is_towel_day(datetime(2011, 5, 25)) assert not is_towel_day(datetime(2011, 6, 25)) assert not is_towel_day(datetime(2011, 5, 26)) diff --git a/sandbox/tests/test_useful.py b/swh/sandbox/tests/test_useful.py similarity index 68% rename from sandbox/tests/test_useful.py rename to swh/sandbox/tests/test_useful.py index 66eee61..9ce9b6f 100644 --- a/sandbox/tests/test_useful.py +++ b/swh/sandbox/tests/test_useful.py @@ -1,5 +1,5 @@ -from sandbox import useful_function +from swh.sandbox import useful_function def test_useful_ok(): assert useful_function() == 42, 'you forgot your towel!' diff --git a/tox.ini b/tox.ini index 66353d0..c12e4f0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,24 +1,24 @@ [tox] envlist=flake8,py3 [testenv:py3] deps = pytest-cov commands = - pytest --cov=sandbox --cov-branch {posargs} + pytest --cov=swh --cov-branch {posargs} [testenv:flake8] skip_install = true deps = flake8 commands = {envpython} -m flake8 [testenv:flake8-phab] skip_install = true deps = flake8 git+https://framagit.org/douardda/flake8-phabricator-formatter.git commands = {envpython} -m flake8 --format=phabricator --output-file=.phabricator-lint