diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2020-04-05 22:58:04 +0200 |
---|---|---|
committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-04-05 22:58:04 +0200 |
commit | e7b2d6c873f0bfd502d06c9bd239cedc465e51c5 (patch) | |
tree | b3ce19f49fbbb4dcecd7cee8a32f02ed80f823b2 /gitlab/tests/test_gitlab.py | |
parent | 6cb9d9238ea3cc73689d6b71e991f2ec233ee8e6 (diff) | |
download | gitlab-e7b2d6c873f0bfd502d06c9bd239cedc465e51c5.tar.gz |
test(api): add tests for group export/import API
Diffstat (limited to 'gitlab/tests/test_gitlab.py')
-rw-r--r-- | gitlab/tests/test_gitlab.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gitlab/tests/test_gitlab.py b/gitlab/tests/test_gitlab.py index d104c7d..8261cc6 100644 --- a/gitlab/tests/test_gitlab.py +++ b/gitlab/tests/test_gitlab.py @@ -626,23 +626,6 @@ class TestGitlab(unittest.TestCase): self.assertIsInstance(statistics, ProjectIssuesStatistics) self.assertEqual(statistics.statistics["counts"]["all"], 20) - def test_groups(self): - @urlmatch( - scheme="http", netloc="localhost", path="/api/v4/groups/1", method="get" - ) - def resp_get_group(url, request): - headers = {"content-type": "application/json"} - content = '{"name": "name", "id": 1, "path": "path"}' - content = content.encode("utf-8") - return response(200, content, headers, None, 5, request) - - with HTTMock(resp_get_group): - data = self.gl.groups.get(1) - self.assertIsInstance(data, Group) - self.assertEqual(data.name, "name") - self.assertEqual(data.path, "path") - self.assertEqual(data.id, 1) - def test_issues(self): @urlmatch( scheme="http", netloc="localhost", path="/api/v4/issues", method="get" |