We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c6b8c4 commit 82a5d0bCopy full SHA for 82a5d0b
setup.cfg
@@ -43,6 +43,7 @@ testing =
43
pytest-enabler >= 1.3
44
45
# local
46
+ importlib-resources@git+https://github.com/python/importlib_resources@feature/203-non-package-modules
47
48
docs =
49
# upstream
tests/test_officepack.py
@@ -1,13 +1,12 @@
1
-import pathlib
2
-
3
import pytest
+import importlib_resources as resources
4
5
from openpack.officepack import OfficePackage
6
7
8
@pytest.fixture
9
def officepack_sample(request):
10
- return pathlib.Path(__file__).parent.joinpath('empty.docx').open('rb')
+ return resources.files(__name__).joinpath('empty.docx').open('rb')
11
12
13
def test_open(officepack_sample):
0 commit comments