Skip to content

Commit

Permalink
black formatting for failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Feb 9, 2022
1 parent fdc453e commit 0074d02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion errbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ def get_doc(self, command: Callable) -> str:
if self.prefix == "!":
return command.__doc__
ununderscore_keys = (m.replace("_", " ") for m in self.all_commands.keys())
pat = re.compile(fr'!({"|".join(ununderscore_keys)})')
pat = re.compile(rf'!({"|".join(ununderscore_keys)})')
return re.sub(pat, self.prefix + "\1", command.__doc__)

@staticmethod
Expand Down
13 changes: 5 additions & 8 deletions tests/webhooks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,11 @@ def test_generate_certificate_creates_usable_cert(webhook_testbot):
requests.packages.urllib3.exceptions.InsecureRequestWarning
)

assert (
requests.post(
"https://localhost:{}/webhook1".format(WEBSERVER_SSL_PORT),
JSONOBJECT,
verify=False,
).text
== repr(json.loads(JSONOBJECT))
)
assert requests.post(
"https://localhost:{}/webhook1".format(WEBSERVER_SSL_PORT),
JSONOBJECT,
verify=False,
).text == repr(json.loads(JSONOBJECT))


def test_custom_headers_and_status_codes(webhook_testbot):
Expand Down

0 comments on commit 0074d02

Please sign in to comment.