/usr/lib/python3/dist-packages/importmagic/conftest.py is in python3-importmagic 0.1.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import os
import pytest
from importmagic.index import SymbolIndex
@pytest.fixture(scope='session')
def index(request):
#dir = os.path.dirname(__file__)
# On Debian the test file will be copied to a local directory
dir = os.getcwd()
with open(os.path.join(dir, 'test_index.json')) as fd:
return SymbolIndex.deserialize(fd)
|