Skip to content

Commit

Permalink
Add test capturing missed expectation. Ref #257.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub-CZ authored and jaraco committed Mar 16, 2024
1 parent 9f5b437 commit 2cec87b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions importlib_resources/tests/test_files.py
Expand Up @@ -34,6 +34,11 @@ def test_read_text(self):
def test_traversable(self):
assert isinstance(resources.files(self.data), Traversable)

def test_joinpath_with_multiple_args(self):
files = resources.files(self.data)
binfile = files.joinpath('subdirectory', 'binary.file')
self.assertTrue(binfile.is_file())

def test_old_parameter(self):
"""
Files used to take a 'package' parameter. Make sure anyone
Expand Down

0 comments on commit 2cec87b

Please sign in to comment.