mirror of
https://github.com/JockeTF/fimfarchive.git
synced 2024-11-22 05:17:59 +01:00
Add mocked test data for Fimfiction APIv2
This commit is contained in:
parent
70b0261710
commit
8e8dac864a
3 changed files with 6473 additions and 3 deletions
6470
tests/fetchers/test_fimfiction2.json
Normal file
6470
tests/fetchers/test_fimfiction2.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -60,14 +60,15 @@ class TestFimfiction2Fetcher:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.fixture(params=BULK_COMBINATIONS)
|
@pytest.fixture(params=BULK_COMBINATIONS)
|
||||||
def fetcher(self, request):
|
def fetcher(self, responses, request):
|
||||||
"""
|
"""
|
||||||
Returns a Fimfarchive2Fetcher instance.
|
Returns a Fimfarchive2Fetcher instance.
|
||||||
"""
|
"""
|
||||||
bulk_meta, bulk_data = request.param
|
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 = Fimfiction2Fetcher(token, bulk_meta, bulk_data)
|
||||||
|
|
||||||
|
fetcher.requester.bulk.bulk_size = 2
|
||||||
fetcher.prefetch_meta = False
|
fetcher.prefetch_meta = False
|
||||||
fetcher.prefetch_data = False
|
fetcher.prefetch_data = False
|
||||||
|
|
||||||
|
|
1
tox.ini
1
tox.ini
|
@ -19,7 +19,6 @@ commands =
|
||||||
addopts =
|
addopts =
|
||||||
--ignore tests/fetchers/test_fimfarchive.py
|
--ignore tests/fetchers/test_fimfarchive.py
|
||||||
--ignore tests/fetchers/test_fimfiction.py
|
--ignore tests/fetchers/test_fimfiction.py
|
||||||
--ignore tests/fetchers/test_fimfiction2.py
|
|
||||||
tests
|
tests
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
|
Loading…
Reference in a new issue