swh.lister.gitlab.tests: Separate properly tests per lister

This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-12 11:29:11 +02:00
parent b9544c77f4
commit d640fdcc96
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
4 changed files with 11 additions and 11 deletions

View file

@ -2,6 +2,7 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import re
import unittest
from datetime import datetime, timedelta
@ -12,12 +13,11 @@ from swh.lister.core.tests.test_lister import HttpListerTesterBase
class GitLabListerTester(HttpListerTesterBase, unittest.TestCase):
Lister = GitLabLister
test_re = GitLabLister.API_URL_INDEX_RE
test_re = re.compile(r'^.*/projects.*page=(\d+).*')
lister_subdir = 'gitlab'
good_api_response_file = 'api_response.json'
bad_api_response_file = 'api_empty_response.json'
first_index = 1
last_index = 2
entries_per_page = 10
def response_headers(self, request):