Skip to content

Commit

Permalink
Merge pull request #219 from FFY00/test-namespace
Browse files Browse the repository at this point in the history
Add tests for namespace packages in files and read APIs
  • Loading branch information
jaraco committed May 12, 2021
2 parents 9822338 + 556ffa5 commit e3b5f8d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions importlib_resources/tests/test_files.py
Expand Up @@ -35,5 +35,12 @@ class OpenZipTests(FilesTests, util.ZipSetup, unittest.TestCase):
pass


class OpenNamespaceTests(FilesTests, unittest.TestCase):
def setUp(self):
from . import namespacedata01

self.data = namespacedata01


if __name__ == '__main__':
unittest.main()
7 changes: 7 additions & 0 deletions importlib_resources/tests/test_read.py
Expand Up @@ -56,5 +56,12 @@ def test_read_submodule_resource_by_name(self):
self.assertEqual(result, b'\0\1\2\3')


class ReadNamespaceTests(ReadTests, unittest.TestCase):
def setUp(self):
from . import namespacedata01

self.data = namespacedata01


if __name__ == '__main__':
unittest.main()

0 comments on commit e3b5f8d

Please sign in to comment.