import pytest

import haps
import haps.config


@pytest.fixture(scope='session')
def some_class():
    class SomeClass:
        def fun(self):
            return id(self)

    return SomeClass


@pytest.fixture(scope='session')
def some_class2():
    class SomeClass2:
        def fun(self):
            return id(self)

    return SomeClass2


@pytest.fixture(scope='function', autouse=True)
def reset_containter(request):
    request.addfinalizer(haps.Container._reset)


@pytest.fixture(scope='function', autouse=True)
def reset_config(request):
    request.addfinalizer(
        lambda: setattr(haps.config.Configuration, '_instance', None))

import pytest

import haps
import haps.config


@pytest.fixture(scope='session')
def some_class():
    class SomeClass:
        def fun(self):
            return id(self)

    return SomeClass


@pytest.fixture(scope='session')
def some_class2():
    class SomeClass2:
        def fun(self):
            return id(self)

    return SomeClass2


@pytest.fixture(scope='function', autouse=True)
def reset_container(request):
    request.addfinalizer(haps.Container._reset)


@pytest.fixture(scope='function', autouse=True)
def reset_config(request):
    request.addfinalizer(
        lambda: setattr(haps.config.Configuration, '_instance', None))

Fix typo