Skip to content

Commit 0a1da70

Browse files
committed
Fix: Pytest errors
1 parent 68fa23b commit 0a1da70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_edge_cases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def test_shortener_max_clicks_validation(self):
289289

290290
# Verify the negative value was passed (API should handle validation)
291291
called_args = mock_post.call_args
292-
assert called_args[1]["data"]["max-clicks"] == -1
292+
assert called_args[1]["data"]["max-clicks"] == "-1"
293293

294294
@pytest.mark.unit
295295
def test_statistics_short_code_variations(self):

tests/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_password_protected_workflow(self, mock_post):
193193
assert stats.short_code == "secret123"
194194
assert stats.long_url == "https://www.example.com/private"
195195
assert stats.password == "mypassword"
196-
assert stats.max_clicks == 50
196+
assert stats.max_clicks == "50"
197197

198198
# Verify both API calls were made with correct parameters
199199
assert mock_post.call_count == 2

0 commit comments

Comments
 (0)