Deal with depracated arguments

This commit is contained in:
Ritiek Malhotra
2020-04-12 02:46:15 +05:30
parent 0e7da1cd97
commit 0a8a0db54e
6 changed files with 147 additions and 100 deletions

View File

@@ -14,10 +14,7 @@ def test_log_str_to_int():
class TestBadArguments:
def test_error_m3u_without_list(self):
with pytest.raises(SystemExit):
spotdl.command_line.arguments.get_arguments(argv=("-t cool song", "--write-m3u"), to_group=True)
def test_m3u_with_list(self):
spotdl.command_line.arguments.get_arguments(argv=("-l cool_list.txt", "--write-m3u"), to_group=True)
spotdl.command_line.arguments.get_arguments(argv=("-t cool song", "--write-m3u"))
def test_write_to_error(self):
with pytest.raises(SystemExit):
@@ -25,6 +22,7 @@ class TestBadArguments:
class TestArguments:
@pytest.mark.xfail
def test_general_arguments(self):
arguments = spotdl.command_line.arguments.get_arguments(argv=("-t", "elena coats - one last song"))
arguments = arguments.__dict__
@@ -74,5 +72,5 @@ class TestArguments:
def test_grouped_arguments(self):
with pytest.raises(SystemExit):
spotdl.command_line.arguments.get_arguments(to_group=True, to_merge=True)
spotdl.command_line.arguments.get_arguments(to_merge=True)