From 8e4823763e8e25f1be9d8d6cd21b3cf2ac56a00e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 17 May 2026 20:49:38 +0200 Subject: reformat everything for fun --- test/unit/test_gitlab.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/unit/test_gitlab.py') 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): -- cgit v1.3