We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c816456 commit 2b4ebc8Copy full SHA for 2b4ebc8
1 file changed
tests/test_file.py
@@ -173,12 +173,15 @@ def test_fetch(): # type: () -> None
173
f.save()
174
fetched = File.create_without_data(f.id)
175
fetched.fetch()
176
+
177
+ normalized_f_url = f.url.split('/')[-1]
178
+ normalized_fetched_url = f.url.split('/')[-1]
179
180
assert fetched.id == f.id
181
assert fetched.metadata == f.metadata
182
assert fetched.name == f.name
- assert fetched.url == f.url
183
assert fetched.size == f.size
184
+ assert fetched.url == f.url or normalized_fetched_url == normalized_f_url
185
f.destroy()
186
187
0 commit comments