Skip to content

Commit

Permalink
Reduce tests rather than flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
evamaxfield committed Dec 5, 2023
1 parent c1c8469 commit 96e3065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions cdp_backend/tests/utils/test_file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import imageio
import pytest
import requests_mock
from flaky import flaky
from requests import HTTPError

from cdp_backend.utils import file_utils
Expand All @@ -34,11 +33,8 @@
EXAMPLE_VIDEO_HD_FILENAME,
EXAMPLE_VIMEO,
EXAMPLE_YOUTUBE_VIDEO_EMBEDDED,
EXAMPLE_YOUTUBE_VIDEO_PARAMETER,
EXAMPLE_YOUTUBE_VIDEO_SHORT,
)


#############################################################################


Expand Down Expand Up @@ -338,14 +334,13 @@ def test_convert_video_to_mp4(
"uri, expected",
[
(EXAMPLE_YOUTUBE_VIDEO_EMBEDDED, "XALBGkjkUPQ.mp4"),
(EXAMPLE_YOUTUBE_VIDEO_PARAMETER, "XALBGkjkUPQ.mp4"),
(EXAMPLE_YOUTUBE_VIDEO_SHORT, "XALBGkjkUPQ.mp4"),
# (EXAMPLE_YOUTUBE_VIDEO_PARAMETER, "XALBGkjkUPQ.mp4"),
# (EXAMPLE_YOUTUBE_VIDEO_SHORT, "XALBGkjkUPQ.mp4"),
(EXAMPLE_VIMEO, Path("503166067") / "503166067.mp4"),
# (EXAMPLE_VIMEO_SHOWCASE, Path("722690793") / "722690793.mp4"),
# (EXAMPLE_M3U8_PLAYLIST_URI, None),
],
)
@flaky(max_runs=3, min_passes=1)
def test_remote_resource_copy(
resources_dir: Path,
uri: str,
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ test = [
"pytest>=5.4.3",
"pytest-cov>=2.9.0",
"pytest-raises>=0.11",
"flaky>=3.7.0",
# Extras
"networkx>=2.5",
"pydot>=1.4",
Expand Down

0 comments on commit 96e3065

Please sign in to comment.