mirror of
				https://github.com/KevinMidboe/spotify-downloader.git
				synced 2025-10-29 18:00:15 +00:00 
			
		
		
		
	Rename spotdl.command_line.lib to spotdl.command_line.core
This commit is contained in:
		| @@ -1,5 +1,5 @@ | |||||||
| from spotdl.command_line.__main__ import main | from spotdl.command_line.__main__ import main | ||||||
|  |  | ||||||
| from spotdl.version import __version__ | from spotdl.version import __version__ | ||||||
| from spotdl.command_line.lib import Spotdl | from spotdl.command_line.core import Spotdl | ||||||
|  |  | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ import coloredlogs | |||||||
|  |  | ||||||
| import sys | import sys | ||||||
|  |  | ||||||
| from spotdl.command_line.lib import Spotdl | from spotdl.command_line.core import Spotdl | ||||||
| from spotdl.command_line.arguments import get_arguments | from spotdl.command_line.arguments import get_arguments | ||||||
| from spotdl.command_line.exceptions import ArgumentError | from spotdl.command_line.exceptions import ArgumentError | ||||||
|  |  | ||||||
|   | |||||||
| @@ -59,8 +59,7 @@ class Spotdl: | |||||||
|                 if track == "-": |                 if track == "-": | ||||||
|                     for line in sys.stdin: |                     for line in sys.stdin: | ||||||
|                         self.download_track( |                         self.download_track( | ||||||
|                             line, |                             line.strip(), | ||||||
|                             self.arguments |  | ||||||
|                         ) |                         ) | ||||||
|                 else: |                 else: | ||||||
|                     self.download_track(track) |                     self.download_track(track) | ||||||
| @@ -35,7 +35,7 @@ class TestDefaultConfigFile: | |||||||
|     @pytest.mark.skipif(not sys.platform == "linux", reason="Linux only") |     @pytest.mark.skipif(not sys.platform == "linux", reason="Linux only") | ||||||
|     def test_linux_default_config_file(self): |     def test_linux_default_config_file(self): | ||||||
|         expect_default_config_file = os.path.expanduser("~/.config/spotdl/config.yml") |         expect_default_config_file = os.path.expanduser("~/.config/spotdl/config.yml") | ||||||
|         assert spotdl.config.default_config_file == expect_default_config_file |         assert spotdl.config.DEFAULT_CONFIG_FILE == expect_default_config_file | ||||||
|  |  | ||||||
|     @pytest.mark.xfail |     @pytest.mark.xfail | ||||||
|     @pytest.mark.skipif(not sys.platform == "darwin" and not sys.platform == "win32", |     @pytest.mark.skipif(not sys.platform == "darwin" and not sys.platform == "win32", | ||||||
| @@ -51,11 +51,6 @@ class TestDefaultConfigFile: | |||||||
|  |  | ||||||
|  |  | ||||||
| class TestConfig: | class TestConfig: | ||||||
|     def test_default_config(self, config_path): |  | ||||||
|         expect_config = spotdl.config.DEFAULT_CONFIGURATION["spotify-downloader"] |  | ||||||
|         config = spotdl.config.get_config(config_path)["spotify-downloader"] |  | ||||||
|         assert config == expect_config |  | ||||||
|  |  | ||||||
|     @pytest.mark.xfail |     @pytest.mark.xfail | ||||||
|     def test_custom_config_path(self, config_path, modified_config): |     def test_custom_config_path(self, config_path, modified_config): | ||||||
|         parser = argparse.ArgumentParser() |         parser = argparse.ArgumentParser() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user