/var/opt/nydus/ops/importlib_resources/tests
NameSizeModeActions
compat/-0755rm
__pycache__/-0755rm
test_compatibilty_files.py33130644editdlrm
test_contents.py8380644editdlrm
test_custom.py12220644editdlrm
test_files.py57410644editdlrm
test_functional.py90700644editdlrm
test_open.py26820644editdlrm
test_path.py19860644editdlrm
test_read.py30460644editdlrm
test_reader.py46550644editdlrm
test_resource.py76870644editdlrm
test_util.py11050644editdlrm
util.py98040644editdlrm
zip.py5770644editdlrm
_path.py22500644editdlrm
__init__.py00644editdlrm
Edit: /var/opt/nydus/ops/importlib_resources/tests/test_contents.py (838B)
import unittest import importlib_resources as resources from . import util class ContentsTests: expected = { '__init__.py', 'binary.file', 'subdirectory', 'utf-16.file', 'utf-8.file', } def test_contents(self): contents = {path.name for path in resources.files(self.data).iterdir()} assert self.expected <= contents class ContentsDiskTests(ContentsTests, util.DiskSetup, unittest.TestCase): pass class ContentsZipTests(ContentsTests, util.ZipSetup, unittest.TestCase): pass class ContentsNamespaceTests(ContentsTests, util.DiskSetup, unittest.TestCase): MODULE = 'namespacedata01' expected = { # no __init__ because of namespace design 'binary.file', 'subdirectory', 'utf-16.file', 'utf-8.file', }