Skip to content

Commit

Permalink
squash! Add freezegun
Browse files Browse the repository at this point in the history
Affected tests:
- tests/console/test_entry_point.py::test_download_song
- tests/console/test_entry_point.py::test_preload_song
- tests/test_init.py::test_get_urls
  • Loading branch information
gesh [email protected] committed Oct 14, 2024
1 parent 0ebd4a4 commit e66c7a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/console/test_entry_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_show_version(capsys, monkeypatch, argument):

@pytest.mark.vcr()
@pytest.mark.vcr_delete_on_fail
def test_download_song(capsys, monkeypatch, tmpdir):
def test_download_song(capsys, monkeypatch, last_vcr_recording_time, tmpdir):
"""
This test checks if the song is downloaded correctly
"""
Expand Down Expand Up @@ -86,7 +86,7 @@ def test_download_song(capsys, monkeypatch, tmpdir):

@pytest.mark.vcr()
@pytest.mark.vcr_delete_on_fail
def test_preload_song(capsys, monkeypatch, tmpdir):
def test_preload_song(capsys, monkeypatch, last_vcr_recording_time, tmpdir):
"""
This test checks if the song is preloaded correctly.
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setup(tmp_path, monkeypatch):

@pytest.mark.vcr()
@pytest.mark.vcr_delete_on_fail
def test_get_urls(monkeypatch):
def test_get_urls(monkeypatch, last_vcr_recording_time):
"""
Tests if spotdl can be initialized correctly.
"""
Expand Down

0 comments on commit e66c7a9

Please sign in to comment.