<reponame>sanjaymsh/importmagic
import os

import pytest

from importmagic.index import SymbolIndex


@pytest.fixture(scope='session')
def index(request):
    dir = os.path.dirname(__file__)
    with open(os.path.join(dir, 'test_index.json')) as fd:
        return SymbolIndex.deserialize(fd)

import os

import pytest

from importmagic.index import SymbolIndex


@pytest.fixture(scope='session')
def index(request):
    dir = os.path.dirname(__file__)
    with open(os.path.join(dir, 'test_index.json')) as fd:
        return SymbolIndex.deserialize(fd)