Skip to content

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Ledez committed Oct 4, 2023
1 parent e76c20b commit 0903d3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test_cgwire_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUp(self):
def test_init(self):
assert self.t.base_url == "http://127.0.0.1"
assert self.t.status == 0
assert self.t.request == None
assert self.t.request is None

t = CheckURL("http://127.0.0.1:8080")
assert t.base_url == "http://127.0.0.1:8080"
Expand Down Expand Up @@ -63,7 +63,7 @@ def json_patch():
"return_value.text": "<html>502 Bad Gateway</html>",
"return_value.json.side_effect": json_patch,
}
) as mock_request:
):
self.t.check_url('/', self.msg_ok, self.msg_ko)
assert (
self.t.check_if_error(self.msg_ok, self.msg_ko)
Expand Down Expand Up @@ -157,7 +157,7 @@ def json_patch():
"return_value.text": msg_api_ok,
"return_value.json.side_effect": json_patch,
}
) as mock_request:
):
self.t.check_url("/api", self.msg_ok, self.msg_ko)
assert (
self.t.check_if_last_request_is_a_zou(
Expand All @@ -181,7 +181,7 @@ def json_patch():
"return_value.text": msg_api_ko,
"return_value.json.side_effect": json_patch,
}
) as mock_request:
):
self.t.check_url("/api", self.msg_ok, self.msg_ko)
assert (
self.t.check_if_last_request_is_a_zou(
Expand Down Expand Up @@ -455,7 +455,7 @@ def json_patch():
"return_value.text": msg_api_ok,
"return_value.json.side_effect": json_patch,
}
) as mock_request:
):
self.t.check_url("/.version.txt", self.msg_ok, self.msg_ko)
self.t.zou_version = "0.17.30"
self.msg_ok = "✅ 06a Kitsu version 0.17.30 == "
Expand All @@ -480,7 +480,7 @@ def json_patch():
"return_value.text": msg_api_ok,
"return_value.json.side_effect": json_patch,
}
) as mock_request:
):
self.t.check_url("/.version.txt", self.msg_ok, self.msg_ko)
self.t.zou_version = "0.17.30"
self.msg_ok = "✅ 06a Kitsu version 0.17.30 == "
Expand Down

0 comments on commit 0903d3d

Please sign in to comment.