mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
* Bump importlib-resources from 6.0.1 to 6.4.0 Bumps [importlib-resources](https://github.com/python/importlib_resources) from 6.0.1 to 6.4.0. - [Release notes](https://github.com/python/importlib_resources/releases) - [Changelog](https://github.com/python/importlib_resources/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_resources/compare/v6.0.1...v6.4.0) --- updated-dependencies: - dependency-name: importlib-resources dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update importlib-resources==6.4.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
43 lines
930 B
Python
43 lines
930 B
Python
import unittest
|
|
import importlib_resources as resources
|
|
|
|
from . import data01
|
|
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, unittest.TestCase):
|
|
def setUp(self):
|
|
self.data = data01
|
|
|
|
|
|
class ContentsZipTests(ContentsTests, util.ZipSetup, unittest.TestCase):
|
|
pass
|
|
|
|
|
|
class ContentsNamespaceTests(ContentsTests, unittest.TestCase):
|
|
expected = {
|
|
# no __init__ because of namespace design
|
|
'binary.file',
|
|
'subdirectory',
|
|
'utf-16.file',
|
|
'utf-8.file',
|
|
}
|
|
|
|
def setUp(self):
|
|
from . import namespacedata01
|
|
|
|
self.data = namespacedata01
|