From 018d7c34fcdc95898ea4ed97847a93579015f76a Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 18 Nov 2024 21:24:00 +0100 Subject: [PATCH] fixes --- test/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/main.py b/test/main.py index c564208..4265aeb 100644 --- a/test/main.py +++ b/test/main.py @@ -111,20 +111,20 @@ def test_auth_v1_origin_malformed_json(): import json # see oscar.krause/fastapi-dls#1 - payload = f"""{ + payload = f'''{{ "registration_pending": "false", - "environment": { + "environment": {{ "guest_driver_version": "guest_driver_version", "hostname": "myhost", "ip_address_list": ["192.168.1.123"], "os_version": "os_version", "os_platform": "os_platform", - "fingerprint": {"mac_address_list": [ff:ff:ff:ff:ff:ff"]}, + "fingerprint": {{"mac_address_list": [ff:ff:ff:ff:ff:ff"]}}, "host_driver_version": "host_driver_version" - }, + }}, "update_pending": "false", "candidate_origin_ref": "{ORIGIN_REF}" - }""" + }}''' # test regex (temporary, until this section is merged into main.py