

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

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.

+ import pytest
  
  
- def pytest_funcarg__api_factory(request):
+ @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.
## Code Before:


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

## Instruction:
Fix old-style `pytest_funcarg__`, instead @pytest.fixture.
## Code After:
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()
