We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2627ec8 commit 3a16e34Copy full SHA for 3a16e34
tests/test_tusd.py
@@ -24,11 +24,12 @@ def test_tusd_upload(tusd_server):
24
assert uploader.offset == 1337
25
26
27
-def test_tusd_upload_hooks(tusd_server_with_hooks, start_fastapi_server):
+def test_tusd_upload_hooks(tusd_server_with_hooks, start_fastapi_server, color_bars_video):
28
my_client = client.TusClient(url=tusd_server_with_hooks.url)
29
30
- uploader = my_client.uploader(file_stream=(io.BytesIO(b"X" * 1337)), chunk_size=500)
+ with color_bars_video.open("rb") as f:
31
+ uploader = my_client.uploader(file_stream=f, chunk_size=500)
32
- uploader.upload()
33
+ uploader.upload()
34
- assert uploader.offset == 1337
35
+ assert uploader.offset == color_bars_video.stat().st_size
0 commit comments