Skip to content

Commit c6906bf

Browse files
committed
corrected tests to reflect more robust files interface
1 parent 7f436d5 commit c6906bf

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/test_constants.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
from PySALESetup.constants import PACKAGE_ROOT_DIRECTORY, \
2-
ASTEROID_TEMPLATE_PATH, \
1+
from PySALESetup.constants import ASTEROID_TEMPLATE_PATH, \
32
ADDITIONAL_TEMPLATE_PATH, \
43
GRAIN_LIBRARY_PATH
54
import pathlib
65
import pytest
76

87

98
class TestPaths:
10-
@pytest.mark.parametrize('directory', [PACKAGE_ROOT_DIRECTORY,
11-
ASTEROID_TEMPLATE_PATH,
9+
@pytest.mark.parametrize('directory', [ASTEROID_TEMPLATE_PATH,
1210
ADDITIONAL_TEMPLATE_PATH,
1311
GRAIN_LIBRARY_PATH])
1412
def test_is_path(self, directory):
1513
assert isinstance(directory, pathlib.Path)
1614

17-
@pytest.mark.parametrize('directory', [PACKAGE_ROOT_DIRECTORY,
18-
GRAIN_LIBRARY_PATH])
15+
@pytest.mark.parametrize('directory', [GRAIN_LIBRARY_PATH])
1916
def test_is_directory(self, directory):
2017
assert directory.is_dir()
2118

0 commit comments

Comments
 (0)