Skip to content

Commit 3faf336

Browse files
committed
Removed reliance on on-disk fixtures.
Instead, generate on-disk and zip file fixtures on demand in temporary directories. This approach makes it easier to compose different scenarios and mix-in behavior for zip files. It also makes the disk and zip scenarios more symmetric. Re-wrote `test_reader` to utilize these new fixtures instead of assuming the files were present on disk in the test suite.
1 parent f77da58 commit 3faf336

26 files changed

Lines changed: 156 additions & 143 deletions

‎importlib_resources/tests/data01/__init__.py‎

Whitespace-only changes.
-4 Bytes
Binary file not shown.

‎importlib_resources/tests/data01/subdirectory/__init__.py‎

Whitespace-only changes.

‎importlib_resources/tests/data01/subdirectory/binary.file‎

Lines changed: 0 additions & 1 deletion
This file was deleted.
-44 Bytes
Binary file not shown.

‎importlib_resources/tests/data01/utf-8.file‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎importlib_resources/tests/data02/__init__.py‎

Whitespace-only changes.

‎importlib_resources/tests/data02/one/__init__.py‎

Whitespace-only changes.

‎importlib_resources/tests/data02/one/resource1.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎importlib_resources/tests/data02/subdirectory/subsubdir/resource.txt‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)