Skip to content

Commit d26000e

Browse files
committed
fix test for TestVenv
1 parent 20cc621 commit d26000e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3030
- name: Test with pytest
3131
run: |
32-
pytest
32+
pytest --verbose tests/running_piper_test.py::TestVenv

tests/running_piper_test.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# pytest -vs tests/running_piper_test.py::TestDocker
2+
from pathlib import Path
3+
from shlex import split
4+
from subprocess import check_call
5+
from tempfile import TemporaryDirectory
6+
from venv import create
7+
28
import requests
39

410
from piper.envs import VirtualEnv
@@ -38,8 +44,8 @@ class TestVenv:
3844
venv container API test. Methods:
3945
dummy
4046
"""
41-
42-
with VirtualEnv() as env:
43-
env.copy_struct_project()
44-
env.create_files_for_venv()
45-
env.create_files_for_tests()
47+
def test_dummy(self):
48+
with VirtualEnv() as env:
49+
env.copy_struct_project()
50+
env.create_files_for_venv()
51+
env.create_files_for_tests()

0 commit comments

Comments
 (0)