Add mocked test data for Fimfiction APIv2

This commit is contained in:
Joakim Soderlund 2018-09-05 16:44:11 +02:00
parent 70b0261710
commit 8e8dac864a
3 changed files with 6473 additions and 3 deletions

File diff suppressed because it is too large Load diff

View file

@ -60,14 +60,15 @@ class TestFimfiction2Fetcher:
"""
@pytest.fixture(params=BULK_COMBINATIONS)
def fetcher(self, request):
def fetcher(self, responses, request):
"""
Returns a Fimfarchive2Fetcher instance.
"""
bulk_meta, bulk_data = request.param
token = os.environ['FIMFICTION_ACCESS_TOKEN']
token = os.environ.get('FIMFICTION_ACCESS_TOKEN', 'None')
fetcher = Fimfiction2Fetcher(token, bulk_meta, bulk_data)
fetcher.requester.bulk.bulk_size = 2
fetcher.prefetch_meta = False
fetcher.prefetch_data = False

View file

@ -19,7 +19,6 @@ commands =
addopts =
--ignore tests/fetchers/test_fimfarchive.py
--ignore tests/fetchers/test_fimfiction.py
--ignore tests/fetchers/test_fimfiction2.py
tests
[flake8]