From 0cafab1d42755b45c22d2e2b095ca35203515199 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Jun 25 2019 06:09:18 +0000 Subject: tests: fix black formatting on tests --- diff --git a/tests/test_pagure_flask_api_issue.py b/tests/test_pagure_flask_api_issue.py index a1d3918..80a74f3 100644 --- a/tests/test_pagure_flask_api_issue.py +++ b/tests/test_pagure_flask_api_issue.py @@ -1579,7 +1579,7 @@ class PagureFlaskApiIssuetests(tests.SimplePagureTest): data = { "title": "test issue", "issue_content": "This issue needs attention", - "private": True + "private": True, } # Create an issue diff --git a/tests/test_pagure_flask_api_user.py b/tests/test_pagure_flask_api_user.py index e93d5b5..e85704c 100644 --- a/tests/test_pagure_flask_api_user.py +++ b/tests/test_pagure_flask_api_user.py @@ -427,7 +427,9 @@ class PagureFlaskApiUSertests(tests.Modeltests): data = json.loads(output.get_data(as_text=True)) exp = { "activities": [ - {"description_mk": '

pingou committed on test#githash

'} + { + "description_mk": '

pingou committed on test#githash

' + } ], "date": date, } @@ -532,7 +534,9 @@ class PagureFlaskApiUSertests(tests.Modeltests): data = json.loads(output.get_data(as_text=True)) exp = { "activities": [ - {"description_mk": '

pingou committed on test#githash

'} + { + "description_mk": '

pingou committed on test#githash

' + } ], "date": utcdate, } @@ -641,7 +645,9 @@ class PagureFlaskApiUSertests(tests.Modeltests): data = json.loads(output.get_data(as_text=True)) exp = { "activities": [ - {"description_mk": '

pingou committed on test#githash

'} + { + "description_mk": '

pingou committed on test#githash

' + } ], "date": utcdate, } diff --git a/tests/test_pagure_flask_ui_app.py b/tests/test_pagure_flask_ui_app.py index 37f16d5..1778268 100644 --- a/tests/test_pagure_flask_ui_app.py +++ b/tests/test_pagure_flask_ui_app.py @@ -1440,7 +1440,9 @@ class PagureFlaskApptests(tests.Modeltests): text = "Cf commit %s" % first_commit.oid.hex exp = ( '

Cf commit {1}' - "

".format(first_commit.oid.hex, first_commit.oid.hex[:7]) + "

".format( + first_commit.oid.hex, first_commit.oid.hex[:7] + ) ) with self.app.application.app_context(): diff --git a/tests/test_pagure_flask_ui_fork.py b/tests/test_pagure_flask_ui_fork.py index a2c34d8..0a95f39 100644 --- a/tests/test_pagure_flask_ui_fork.py +++ b/tests/test_pagure_flask_ui_fork.py @@ -2564,7 +2564,7 @@ More information self.assertIn( '' - ' master', + " master", output_text, ) @@ -2789,7 +2789,7 @@ More information self.assertIn( '' - ' master', + " master", output_text, ) @@ -3106,13 +3106,13 @@ More information self.assertIn( '' - ' master', + " master", output_text, ) self.assertIn( '' - ' random_branch', + " random_branch", output_text, ) @@ -3208,13 +3208,13 @@ More information self.assertIn( '' - ' master', + " master", output_text, ) self.assertIn( '' - ' random_branch', + " random_branch", output_text, ) @@ -4776,12 +4776,12 @@ class TestTicketAccessEditPRMetadata(tests.Modeltests): output_text, ) self.assertIn( - '', - '', - output_text, - ) + '', + '', + output_text, + ) self.assertNotIn( '
', output_text, @@ -4804,7 +4804,7 @@ class TestTicketAccessEditPRMetadata(tests.Modeltests): self.assertIn( '', '', output_text, ) @@ -4832,7 +4832,7 @@ class TestTicketAccessEditPRMetadata(tests.Modeltests): self.assertIn( '', '', output_text, ) @@ -4863,7 +4863,7 @@ class TestTicketAccessEditPRMetadata(tests.Modeltests): self.assertIn( '', '', output_text, ) @@ -4893,7 +4893,7 @@ class TestTicketAccessEditPRMetadata(tests.Modeltests): self.assertIn( '', '', output_text, ) diff --git a/tests/test_pagure_flask_ui_issues.py b/tests/test_pagure_flask_ui_issues.py index 0220f4d..5ffb42e 100644 --- a/tests/test_pagure_flask_ui_issues.py +++ b/tests/test_pagure_flask_ui_issues.py @@ -1355,9 +1355,7 @@ class PagureFlaskIssuestests(tests.Modeltests): # Not author nor admin = No take self.assertNotIn("function take_issue(){", output_text) self.assertNotIn("function drop_issue(){", output_text) - self.assertNotIn( - '' in output_text) self.assertIn( '