File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
src/createpythonapp.egg-info Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
+ .gitignore
2
3
LICENSE
3
4
MANIFEST.in
4
5
README.md
5
6
activate.sh
7
+ gitignore
6
8
lint.sh
7
9
make_venv.py
8
10
pyproject.toml
@@ -14,6 +16,7 @@ upload_package.sh
14
16
.github/workflows/push_macos.yml
15
17
.github/workflows/push_ubuntu.yml
16
18
.github/workflows/push_win.yml
19
+ .vscode/launch.json
17
20
.vscode/settings.json
18
21
src/.DS_Store
19
22
src/createpythonapp/.DS_Store
@@ -29,6 +32,7 @@ src/createpythonapp/__pycache__/__init__.cpython-310.pyc
29
32
src/createpythonapp/__pycache__/cli.cpython-310.pyc
30
33
src/createpythonapp/__pycache__/createapp.cpython-310.pyc
31
34
tests/test_cli.py
35
+ tests/test_createapp.py
32
36
tests/__pycache__/test_cli.cpython-310-pytest-7.2.1.pyc
33
37
tests/__pycache__/test_main.cpython-310-pytest-7.1.2.pyc
34
38
tests/__pycache__/test_main.cpython-310-pytest-7.1.3.pyc
Original file line number Diff line number Diff line change 4
4
import os
5
5
import unittest
6
6
import shutil
7
+ import subprocess
7
8
8
9
from createpythonapp .createapp import do_create_python_app
9
10
@@ -37,8 +38,14 @@ def test_imports(self) -> None:
37
38
self .assertTrue (os .path .exists (os .path .join (outdir , "tests" , "test_cli.py" )))
38
39
# tox
39
40
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)
42
49
43
50
44
51
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ commands =
19
19
flake8 src tests
20
20
pylint src tests
21
21
mypy src tests
22
- pytest tests
22
+ python tests/test_createapp.py
You can’t perform that action at this time.
0 commit comments