From f746b1043f986335a104aa33c59178891b6ff6d8 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 8 Mar 2023 14:04:27 +0100 Subject: [PATCH] Fix sporadically failing test --- tests/test_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 8eeae9c..aa7b89a 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -319,7 +319,7 @@ def test_media_thumbnail(app, user, run): assert media["preview_url"].endswith(".png") # Video properties - assert media["meta"]["original"]["duration"] == 5.58 + assert int(media["meta"]["original"]["duration"]) == 5 assert media["meta"]["original"]["height"] == 320 assert media["meta"]["original"]["width"] == 560