Skip to content

Commit 1e69d36

Browse files
Fix pre-commit formatting issues in JSON cookie test
- Remove trailing whitespace from empty lines - Address ruff formatting requirements for browser refresh test enhancement Co-Authored-By: [email protected] <[email protected]>
1 parent 17e008e commit 1e69d36

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integration/test_client_storage.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ def set_sub(var: str, value: str):
827827
json_dict = '{"access_token": "redacted", "refresh_token": "redacted", "created_at": 1234567890, "expires_in": 3600}'
828828
set_sub("c1", json_dict)
829829
AppHarness.expect(lambda: c1.text == json_dict)
830-
830+
831831
driver.refresh()
832832
poll_for_token()
833833
c1 = driver.find_element(By.ID, "c1")
@@ -837,7 +837,7 @@ def set_sub(var: str, value: str):
837837
json_array = '["item1", "item2", "item3"]'
838838
set_sub("c2", json_array)
839839
AppHarness.expect(lambda: c2.text == json_array)
840-
840+
841841
driver.refresh()
842842
poll_for_token()
843843
c1 = driver.find_element(By.ID, "c1")
@@ -847,7 +847,7 @@ def set_sub(var: str, value: str):
847847
complex_json = '{"user": {"id": 123, "name": "test"}, "settings": {"theme": "dark", "notifications": true}, "data": [1, 2, 3]}'
848848
set_sub("c1", complex_json)
849849
AppHarness.expect(lambda: c1.text == complex_json)
850-
850+
851851
driver.refresh()
852852
poll_for_token()
853853
c1 = driver.find_element(By.ID, "c1")
@@ -859,7 +859,7 @@ def set_sub(var: str, value: str):
859859
)
860860
set_sub("c2", json_with_escapes)
861861
AppHarness.expect(lambda: c2.text == json_with_escapes)
862-
862+
863863
driver.refresh()
864864
poll_for_token()
865865
c1 = driver.find_element(By.ID, "c1")
@@ -869,7 +869,7 @@ def set_sub(var: str, value: str):
869869
empty_json_obj = "{}"
870870
set_sub("c1", empty_json_obj)
871871
AppHarness.expect(lambda: c1.text == empty_json_obj)
872-
872+
873873
driver.refresh()
874874
poll_for_token()
875875
c1 = driver.find_element(By.ID, "c1")
@@ -879,7 +879,7 @@ def set_sub(var: str, value: str):
879879
empty_json_array = "[]"
880880
set_sub("c2", empty_json_array)
881881
AppHarness.expect(lambda: c2.text == empty_json_array)
882-
882+
883883
driver.refresh()
884884
poll_for_token()
885885
c1 = driver.find_element(By.ID, "c1")

0 commit comments

Comments
 (0)