Skip to content

Commit

Permalink
corrected tests to reflect more robust files interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jgd10 committed Jan 29, 2025
1 parent 7f436d5 commit c6906bf
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/test_constants.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
from PySALESetup.constants import PACKAGE_ROOT_DIRECTORY, \
ASTEROID_TEMPLATE_PATH, \
from PySALESetup.constants import ASTEROID_TEMPLATE_PATH, \
ADDITIONAL_TEMPLATE_PATH, \
GRAIN_LIBRARY_PATH
import pathlib
import pytest


class TestPaths:
@pytest.mark.parametrize('directory', [PACKAGE_ROOT_DIRECTORY,
ASTEROID_TEMPLATE_PATH,
@pytest.mark.parametrize('directory', [ASTEROID_TEMPLATE_PATH,
ADDITIONAL_TEMPLATE_PATH,
GRAIN_LIBRARY_PATH])
def test_is_path(self, directory):
assert isinstance(directory, pathlib.Path)

@pytest.mark.parametrize('directory', [PACKAGE_ROOT_DIRECTORY,
GRAIN_LIBRARY_PATH])
@pytest.mark.parametrize('directory', [GRAIN_LIBRARY_PATH])
def test_is_directory(self, directory):
assert directory.is_dir()

Expand Down

0 comments on commit c6906bf

Please sign in to comment.