diff options
author | shadchin <shadchin@yandex-team.com> | 2024-05-08 20:07:13 +0300 |
---|---|---|
committer | shadchin <shadchin@yandex-team.com> | 2024-05-08 20:18:42 +0300 |
commit | 65c7668fade840d2c45f77a24dfdccecdebf54ae (patch) | |
tree | 864b1547a65692229fd57a892dfd09c08315adde /library/python/runtime_py3/test/test_resources.py | |
parent | b9848536fa2642fab34114a1779ab886881495c4 (diff) | |
download | ydb-65c7668fade840d2c45f77a24dfdccecdebf54ae.tar.gz |
Extend support importlib.resources in Arcadia
5d391b8f31717f85fcd88c4ae5ce3b57a723e42e
Diffstat (limited to 'library/python/runtime_py3/test/test_resources.py')
-rw-r--r-- | library/python/runtime_py3/test/test_resources.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/python/runtime_py3/test/test_resources.py b/library/python/runtime_py3/test/test_resources.py index 75c1eb3549..0bf70f8c54 100644 --- a/library/python/runtime_py3/test/test_resources.py +++ b/library/python/runtime_py3/test/test_resources.py @@ -111,3 +111,14 @@ def test_files_read_text(package, resource, expected): ) def test_files_iterdir(package, expected): assert tuple(resource.name for resource in ir.files(package).iterdir()) == expected + + +@pytest.mark.parametrize( + "package, expected", + ( + ("resources", ("foo.txt", "submodule")), + ("resources.submodule", ("bar.txt",)), + ), +) +def test_files_iterdir_with_sort(package, expected): + assert tuple(resource.name for resource in sorted(ir.files(package).iterdir())) == expected |