fixed test call
This commit is contained in:
@@ -7,6 +7,6 @@ Dies ist die dritte Version von AutoPicture.
|
|||||||
# Tests
|
# Tests
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3.10 -m pytest --no-header -rfp --cov --cov-report html:tests/coverage --cov-report xml:tests/coverage/coverage.xml tests/
|
sh ./tests/start_tests.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[pytest]
|
[pytest]
|
||||||
pythonpath = .
|
pythonpath = tests
|
||||||
addopts = --ignore-glob=**/tests/**
|
addopts = --ignore-glob=**/tests/**
|
||||||
1
tests/start_tests.sh
Executable file
1
tests/start_tests.sh
Executable file
@@ -0,0 +1 @@
|
|||||||
|
python3.10 -m pytest --no-header -rfp --cov --cov-report html:tests/coverage --cov-report xml:tests/coverage/coverage.xml tests/
|
||||||
@@ -14,7 +14,7 @@ class TestScanFolder(unittest.TestCase):
|
|||||||
create_file(file='img_01.jpeg')
|
create_file(file='img_01.jpeg')
|
||||||
files = scan_folder(TEST_FOLDER)
|
files = scan_folder(TEST_FOLDER)
|
||||||
delete_folder()
|
delete_folder()
|
||||||
|
|
||||||
assert len(files) == 1
|
assert len(files) == 1
|
||||||
|
|
||||||
def test_scan_empty_folder(self):
|
def test_scan_empty_folder(self):
|
||||||
@@ -43,4 +43,3 @@ class TestScanFolder(unittest.TestCase):
|
|||||||
delete_folder()
|
delete_folder()
|
||||||
|
|
||||||
assert len(files) == 0
|
assert len(files) == 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user