tests: Update pytest_plugin according to latest version change
This commit is contained in:
parent
9a1314c656
commit
a8cde12d72
44 changed files with 8 additions and 8 deletions
|
@ -1,3 +1,3 @@
|
|||
swh.core >= 0.0.73
|
||||
swh.core >= 0.0.75
|
||||
swh.storage[schemata] >= 0.0.122
|
||||
swh.scheduler >= 0.0.58
|
||||
|
|
|
@ -29,8 +29,8 @@ class BitBucketListerTester(HttpListerTester, unittest.TestCase):
|
|||
Lister = BitBucketLister
|
||||
test_re = re.compile(r'/repositories\?after=([^?&]+)')
|
||||
lister_subdir = 'bitbucket'
|
||||
good_api_response_file = 'data/api.bitbucket.org/response.json'
|
||||
bad_api_response_file = 'data/api.bitbucket.org/empty_response.json'
|
||||
good_api_response_file = 'data/https_api.bitbucket.org/response.json'
|
||||
bad_api_response_file = 'data/https_api.bitbucket.org/empty_response.json'
|
||||
first_index = convert_type('2008-07-12T07:44:01.476818+00:00')
|
||||
last_index = convert_type('2008-07-19T06:16:43.044743+00:00')
|
||||
entries_per_page = 10
|
||||
|
|
|
@ -18,8 +18,8 @@ class GitHubListerTester(HttpListerTester, unittest.TestCase):
|
|||
Lister = GitHubLister
|
||||
test_re = re.compile(r'/repositories\?since=([^?&]+)')
|
||||
lister_subdir = 'github'
|
||||
good_api_response_file = 'data/api.github.com/first_response.json'
|
||||
bad_api_response_file = 'data/api.github.com/empty_response.json'
|
||||
good_api_response_file = 'data/https_api.github.com/first_response.json'
|
||||
bad_api_response_file = 'data/https_api.github.com/empty_response.json'
|
||||
first_index = 0
|
||||
last_index = 369
|
||||
entries_per_page = 100
|
||||
|
@ -52,7 +52,7 @@ class GitHubListerTester(HttpListerTester, unittest.TestCase):
|
|||
@requests_mock.Mocker()
|
||||
def test_scheduled_tasks(self, http_mocker):
|
||||
self.scheduled_tasks_test(
|
||||
'data/api.github.com/next_response.json', 876, http_mocker)
|
||||
'data/https_api.github.com/next_response.json', 876, http_mocker)
|
||||
|
||||
|
||||
def test_lister_github(swh_listers, requests_mock_datadir):
|
||||
|
|
|
@ -27,7 +27,7 @@ def test_load_raw_data_from_query_failure(requests_mock_datadir):
|
|||
|
||||
|
||||
def test_load_raw_data_from_file(datadir):
|
||||
filepath = path.join(datadir, 'ftp.gnu.org', 'tree.json.gz')
|
||||
filepath = path.join(datadir, 'https_ftp.gnu.org', 'tree.json.gz')
|
||||
actual_json = load_raw_data(filepath)
|
||||
assert actual_json is not None
|
||||
assert isinstance(actual_json, list)
|
||||
|
|
|
@ -32,7 +32,7 @@ class PackagistListerTester(HttpSimpleListerTester, unittest.TestCase):
|
|||
Lister = PackagistLister
|
||||
PAGE = 'https://packagist.org/packages/list.json'
|
||||
lister_subdir = 'packagist'
|
||||
good_api_response_file = 'data/packagist.org/packages_list.json'
|
||||
good_api_response_file = 'data/https_packagist.org/packages_list.json'
|
||||
entries = 5
|
||||
|
||||
@requests_mock.Mocker()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue