Skip broken tests

This commit is contained in:
7x11x13 2024-06-23 21:26:49 -04:00
parent 8ea3721b14
commit d88897df06
3 changed files with 14 additions and 5 deletions

3
.gitignore vendored
View File

@ -6,4 +6,5 @@ __pycache__/
*.mp3
.vscode
.venv
.env
.env
.coverage*

View File

@ -31,7 +31,7 @@ setup(
"soundcloud-v2>=1.3.10",
"filelock>=3.0.0",
],
extras_require={"test": ["coveralls", "pytest", "pytest-dotenv", "music-tag"]},
extras_require={"test": ["pytest", "pytest-cov", "pytest-dotenv", "music-tag"]},
url="https://github.com/flyingrub/scdl",
classifiers=[
"Programming Language :: Python",

View File

@ -1,9 +1,12 @@
import os
from pathlib import Path
import pytest
from tests.utils import assert_not_track, assert_track, call_scdl_with_auth
@pytest.mark.skip(reason="Track has reached download limit")
def test_original_download(tmp_path: Path):
os.chdir(tmp_path)
r = call_scdl_with_auth(
@ -16,6 +19,7 @@ def test_original_download(tmp_path: Path):
assert_track(tmp_path, "track.wav")
@pytest.mark.skip(reason="Track has reached download limit")
def test_flac(tmp_path: Path):
os.chdir(tmp_path)
r = call_scdl_with_auth(
@ -83,6 +87,7 @@ def test_original_art(tmp_path: Path):
assert_track(tmp_path, "track.mp3", expected_artwork_len=3409)
@pytest.mark.skip(reason="Track has reached download limit")
def test_original_name(tmp_path: Path):
os.chdir(tmp_path)
r = call_scdl_with_auth(
@ -96,6 +101,7 @@ def test_original_name(tmp_path: Path):
assert_track(tmp_path, "original.wav", check_metadata=False)
@pytest.mark.skip(reason="Track has reached download limit")
def test_original_metadata(tmp_path: Path):
os.chdir(tmp_path)
r = call_scdl_with_auth(
@ -109,6 +115,7 @@ def test_original_metadata(tmp_path: Path):
assert_track(tmp_path, "track.wav", "og title", "og artist", "og genre", False)
@pytest.mark.skip(reason="Track has reached download limit")
def test_force_metadata(tmp_path: Path):
os.chdir(tmp_path)
r = call_scdl_with_auth(
@ -263,13 +270,14 @@ def test_remove(tmp_path: Path):
assert_track(tmp_path, "track.mp3", check_metadata=False)
r = call_scdl_with_auth(
"-l",
"https://soundcloud.com/one-thousand-and-one/test-track",
"https://soundcloud.com/one-thousand-and-one/test-track-2/s-fgLQFAzNIMP",
"--name-format",
"track",
"track2",
"--remove",
"--onlymp3",
)
assert r.returncode == 0
assert_track(tmp_path, "track.wav", check_metadata=False)
assert_track(tmp_path, "track2.mp3", check_metadata=False)
assert_not_track(tmp_path, "track.mp3")