From e33024db868246d33aa241ebe3b453c1b965d41c Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 18 Nov 2024 19:58:15 +0100 Subject: [PATCH] fixed variable names ref. oscar.krause/fastapi-dls#1 --- test/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/main.py b/test/main.py index 1574aba..fa96c30 100644 --- a/test/main.py +++ b/test/main.py @@ -110,7 +110,7 @@ def test_auth_v1_origin_malformed_json(): import re # see oscar.krause/fastapi-dls#1 - json = """{ + payload = """{ "registration_pending": "false", "environment": { "guest_driver_version": "guest_driver_version", @@ -132,7 +132,7 @@ def test_auth_v1_origin_malformed_json(): replaced = re.sub(regex, r'\1"\2', json_test) assert replaced == '{"environment": {"fingerprint": {"mac_address_list": ["ff:ff:ff:ff:ff:ff"]}}' - json = re.sub(regex, r'\1"\2', json) + payload = re.sub(regex, r'\1"\2', payload) # response = client.post('/auth/v1/origin', json=payload)