Skip to content

Commit 945ba92

Browse files
committed
make tox pass
1 parent 3b06ad1 commit 945ba92

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

src/createpythonapp.egg-info/SOURCES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
.DS_Store
2+
.gitignore
23
LICENSE
34
MANIFEST.in
45
README.md
56
activate.sh
7+
gitignore
68
lint.sh
79
make_venv.py
810
pyproject.toml
@@ -14,6 +16,7 @@ upload_package.sh
1416
.github/workflows/push_macos.yml
1517
.github/workflows/push_ubuntu.yml
1618
.github/workflows/push_win.yml
19+
.vscode/launch.json
1720
.vscode/settings.json
1821
src/.DS_Store
1922
src/createpythonapp/.DS_Store
@@ -29,6 +32,7 @@ src/createpythonapp/__pycache__/__init__.cpython-310.pyc
2932
src/createpythonapp/__pycache__/cli.cpython-310.pyc
3033
src/createpythonapp/__pycache__/createapp.cpython-310.pyc
3134
tests/test_cli.py
35+
tests/test_createapp.py
3236
tests/__pycache__/test_cli.cpython-310-pytest-7.2.1.pyc
3337
tests/__pycache__/test_main.cpython-310-pytest-7.1.2.pyc
3438
tests/__pycache__/test_main.cpython-310-pytest-7.1.3.pyc

tests/test_createapp.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import os
55
import unittest
66
import shutil
7+
import subprocess
78

89
from createpythonapp.createapp import do_create_python_app
910

@@ -37,8 +38,14 @@ def test_imports(self) -> None:
3738
self.assertTrue(os.path.exists(os.path.join(outdir, "tests", "test_cli.py")))
3839
# tox
3940
self.assertTrue(os.path.exists(os.path.join(outdir, "tox.ini")))
40-
rtn = os.system("tox")
41-
self.assertEqual(rtn, 0)
41+
os.chdir(outdir)
42+
# rtn = os.system("tox")
43+
subprocess.check_call("pip install -e .", shell=True)
44+
subprocess.check_call("python tests/test_cli.py", shell=True)
45+
subprocess.check_call("pylint src tests", shell=True)
46+
subprocess.check_call("flake8 src tests", shell=True)
47+
subprocess.check_call("mypy src tests", shell=True)
48+
# self.assertEqual(rtn, 0)
4249

4350

4451
if __name__ == "__main__":

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ commands =
1919
flake8 src tests
2020
pylint src tests
2121
mypy src tests
22-
pytest tests
22+
python tests/test_createapp.py

0 commit comments

Comments
 (0)