Skip to content

Commit

Permalink
Remove the random import from other test files
Browse files Browse the repository at this point in the history
  • Loading branch information
dplocki committed Feb 3, 2024
1 parent aebdcd7 commit 9c2bd3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e/test_simple_configuration.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import datetime
import random
from e2e.fixures import (
FeedBuilder,
PodcastDirectory,
Expand Down Expand Up @@ -158,7 +157,7 @@ def test_download_from_n_days_from_feed_behavior(

metadata = []
previous = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(days=1)
for _ in range(random.randrange(7, 13)):
for _ in range(generate_random_int(7, 13)):
metadata.append((generate_random_mp3_file(), previous))
previous -= datetime.timedelta(days=1)

Expand All @@ -182,6 +181,8 @@ def test_download_from_n_days_from_feed_behavior(

# Act
run_podcast_downloader()

# Assert
podcast_directory.is_containing_only(
[m[0].lower() for m in metadata[-n_days_number:]]
)

0 comments on commit 9c2bd3c

Please sign in to comment.