Skip to content

Commit

Permalink
f strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Jul 14, 2024
1 parent cd19fd5 commit cbb168e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def __init__(self, **kwargs):
self.response = kwargs["response"]

def run(self, api):
url = f"{api}{self.request["path"]}"
path = self.request["path"]
url = f"{api}{path}"
r = requests.get(url, params=self.request.get("params"))
self.test_equals("status code", r.status_code, self.response.get("status", 200))
response_data = r.json()
Expand Down

0 comments on commit cbb168e

Please sign in to comment.