Skip to content

Commit

Permalink
Test fixes, updating snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Nov 10, 2024
1 parent 22f3e71 commit 7b45ca0
Show file tree
Hide file tree
Showing 13 changed files with 1,086 additions and 1,086 deletions.
Binary file modified .coverage
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
182 changes: 91 additions & 91 deletions tests/__snapshots__/test_snapshots/TestJumpMode.test_click_switch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
182 changes: 91 additions & 91 deletions tests/__snapshots__/test_snapshots/TestJumpMode.test_focus_switch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
192 changes: 96 additions & 96 deletions tests/__snapshots__/test_snapshots/TestJumpMode.test_loads.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions tests/test_curl_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def test_get_with_headers():
assert curl_import.method == "GET"
assert curl_import.url == "http://example.com"
assert curl_import.headers == [
["Accept", "application/json"],
["User-Agent", "TestAgent"],
("Accept", "application/json"),
("User-Agent", "TestAgent"),
]
assert curl_import.data is None

Expand Down Expand Up @@ -145,14 +145,14 @@ def test_curl_with_escaped_newlines():
assert curl_import.method == "POST"
assert curl_import.url == "http://example.com"
assert curl_import.data == '{"key": "value"}'
assert curl_import.headers == [["Content-Type", "application/json"]]
assert curl_import.headers == [("Content-Type", "application/json")]


def test_curl_with_no_space_in_header():
"""Test headers without space after colon."""
curl_command = "curl -H 'Authorization:Bearer token' http://example.com"
curl_import = CurlImport(curl_command)
assert curl_import.headers == [["Authorization", "Bearer token"]]
assert curl_import.headers == [("Authorization", "Bearer token")]


def test_curl_with_complex_command():
Expand All @@ -166,8 +166,8 @@ def test_curl_with_complex_command():
assert curl_import.method == "POST"
assert curl_import.url == "http://example.com/api/test"
assert curl_import.headers == [
["Accept", "application/json"],
["Content-Type", "application/json"],
("Accept", "application/json"),
("Content-Type", "application/json"),
]
assert curl_import.data == '{"name":"test","value":123}'
assert curl_import.compressed is True
Expand Down

0 comments on commit 7b45ca0

Please sign in to comment.