Skip to content

Commit 9a2de13

Browse files
TEST: write testcases for new bugs
1 parent 0bd2ac3 commit 9a2de13

File tree

2 files changed

+89
-7
lines changed

2 files changed

+89
-7
lines changed

tests/test_files_ops.py

Lines changed: 82 additions & 5 deletions
Large diffs are not rendered by default.

tests/test_generate_url.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@ def setUp(self) -> None:
1515
def test_generate_url_with_path(self):
1616
options = {
1717
"path": "/default-image.jpg",
18-
"transformation": [{"height": "300", "width": "400"}],
18+
"transformation": [{"raw":"f-auto","height": "300", "width": "400"}],
19+
"query_parameters": {
20+
"ik-attachment":True
21+
},
1922
}
2023
url = self.client.url(options)
24+
25+
print(url)
2126
self.assertEqual(
2227
url,
23-
"https://test-domain.com/test-endpoint/tr:h-300,w-400/default-image.jpg",
28+
"https://test-domain.com/test-endpoint/tr:f-auto,h-300,w-400/default-image.jpg?ik-attachment=true",
2429
)
2530

2631
def test_overriding_url_endpoint_generation_consists_new_url(self):

0 commit comments

Comments
 (0)