Skip to content

Commit

Permalink
Merge pull request #75 from stealthrocket/fix-invalid-escape-seq
Browse files Browse the repository at this point in the history
Fix invalid escape sequence in client test regexps
  • Loading branch information
pelletier authored Feb 19, 2024
2 parents b5931bd + 0348282 commit 693542d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_api_key_from_env(self):

with self.assertRaisesRegex(
PermissionError,
"Dispatch received an invalid authentication token \(check DISPATCH_API_KEY is correct\)",
r"Dispatch received an invalid authentication token \(check DISPATCH_API_KEY is correct\)",
) as mc:
client.dispatch([Call(function="my-function", input=42)])

Expand All @@ -37,7 +37,7 @@ def test_api_key_from_arg(self):

with self.assertRaisesRegex(
PermissionError,
"Dispatch received an invalid authentication token \(check api_key is correct\)",
r"Dispatch received an invalid authentication token \(check api_key is correct\)",
) as mc:
client.dispatch([Call(function="my-function", input=42)])

Expand Down

0 comments on commit 693542d

Please sign in to comment.