# -*- coding: utf-8 -*-


def pytest_funcarg__api_factory(request):
    class APIFactory:
        def create(self, token='dummy_token'):
            from annict.api import API
            return API(token)
    return APIFactory()

# -*- coding: utf-8 -*-
import pytest


@pytest.fixture
def api_factory():
    class APIFactory:
        def create(self, token='dummy_token'):
            from annict.api import API
            return API(token)
    return APIFactory()

Fix old-style `pytest_funcarg__`, instead @pytest.fixture.
Fix old-style `pytest_funcarg__`, instead @pytest.fixture.
