Skip to content

Commit

Permalink
[gitlab] Fix has_resuming method
Browse files Browse the repository at this point in the history
This code fixes the return value of the `has_resuming` method,
which now is set to true.
  • Loading branch information
valeriocos committed Nov 5, 2018
1 parent ab2078f commit 96e4f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions perceval/backends/core/gitlab.py
Expand Up @@ -81,7 +81,7 @@ class GitLab(Backend):
:param sleep_time: time to sleep in case
:param blacklist_ids: ids of items that must not be retrieved
"""
version = '0.6.0'
version = '0.6.1'

CATEGORIES = [CATEGORY_ISSUE, CATEGORY_MERGE_REQUEST]

Expand Down Expand Up @@ -158,7 +158,7 @@ def has_resuming(cls):
:returns: this backend does not support items resuming
"""
return False
return True

@staticmethod
def metadata_id(item):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gitlab.py
Expand Up @@ -407,7 +407,7 @@ def test_has_archiving(self):
def test_has_resuming(self):
"""Test if it returns False when has_resuming is called"""

self.assertEqual(GitLab.has_resuming(), False)
self.assertEqual(GitLab.has_resuming(), True)

@httpretty.activate
def test_fetch_issues(self):
Expand Down

0 comments on commit 96e4f76

Please sign in to comment.