mirror of
				https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
				synced 2025-10-31 16:00:16 +01:00 
			
		
		
		
	| @@ -110,7 +110,7 @@ def test_auth_v1_origin_malformed_json(): | |||||||
|     import re |     import re | ||||||
|      |      | ||||||
|     # see oscar.krause/fastapi-dls#1 |     # see oscar.krause/fastapi-dls#1 | ||||||
|     json = """{ |     payload = """{ | ||||||
|         "registration_pending": "false", |         "registration_pending": "false", | ||||||
|         "environment": { |         "environment": { | ||||||
|             "guest_driver_version": "guest_driver_version", |             "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) |     replaced = re.sub(regex, r'\1"\2', json_test) | ||||||
|     assert replaced == '{"environment": {"fingerprint": {"mac_address_list": ["ff:ff:ff:ff:ff:ff"]}}' |     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) |     response = client.post('/auth/v1/origin', json=payload) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user