diff options
| author | Egor Tensin <egor@tensin.name> | 2026-05-17 20:49:38 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-05-17 20:49:38 +0200 |
| commit | 8e4823763e8e25f1be9d8d6cd21b3cf2ac56a00e (patch) | |
| tree | a33f781a4476bb7c5c7bc157ea4ea75eb5eeb6b7 /test/unit/test_gitlab.py | |
| parent | workflows: add Python black linting job (diff) | |
| download | cgitize-8e4823763e8e25f1be9d8d6cd21b3cf2ac56a00e.tar.gz cgitize-8e4823763e8e25f1be9d8d6cd21b3cf2ac56a00e.zip | |
reformat everything for fun
Diffstat (limited to 'test/unit/test_gitlab.py')
| -rw-r--r-- | test/unit/test_gitlab.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/unit/test_gitlab.py b/test/unit/test_gitlab.py index 7243dbd..08eb808 100644 --- a/test/unit/test_gitlab.py +++ b/test/unit/test_gitlab.py @@ -13,8 +13,8 @@ from gitlab.exceptions import GitlabGetError class GitLabTests(unittest.TestCase): def setUp(self): self.gitlab = Gitlab( - 'https://gitlab.com', - private_token=os.environ.get('CGITIZE_GITLAB_TOKEN')) + 'https://gitlab.com', private_token=os.environ.get('CGITIZE_GITLAB_TOKEN') + ) def test_nonexistent_repo(self): with self.assertRaises(GitlabGetError): @@ -27,7 +27,9 @@ class GitLabTests(unittest.TestCase): self.assertEqual(r.namespace['name'], 'Test cgitize user') self.assertEqual(r.namespace['path'], 'cgitize-test') self.assertEqual(r.web_url, 'https://gitlab.com/cgitize-test/public') - self.assertEqual(r.http_url_to_repo, 'https://gitlab.com/cgitize-test/public.git') + self.assertEqual( + r.http_url_to_repo, 'https://gitlab.com/cgitize-test/public.git' + ) self.assertEqual(r.ssh_url_to_repo, 'git@gitlab.com:cgitize-test/public.git') def test_private_repo(self): @@ -37,7 +39,9 @@ class GitLabTests(unittest.TestCase): self.assertEqual(r.namespace['name'], 'Test cgitize user') self.assertEqual(r.namespace['path'], 'cgitize-test') self.assertEqual(r.web_url, 'https://gitlab.com/cgitize-test/private') - self.assertEqual(r.http_url_to_repo, 'https://gitlab.com/cgitize-test/private.git') + self.assertEqual( + r.http_url_to_repo, 'https://gitlab.com/cgitize-test/private.git' + ) self.assertEqual(r.ssh_url_to_repo, 'git@gitlab.com:cgitize-test/private.git') def test_user(self): |
