mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
fix: test iterations
This commit is contained in:
@@ -88,7 +88,7 @@ jobs:
|
|||||||
command: pip install twine && twine upload dist/*
|
command: pip install twine && twine upload dist/*
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
test-and-deploy:
|
spleeter-workflow:
|
||||||
jobs:
|
jobs:
|
||||||
- test-3.6
|
- test-3.6
|
||||||
- test-3.7
|
- test-3.7
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ def test_separate():
|
|||||||
""" Test separation from raw data. """
|
""" Test separation from raw data. """
|
||||||
adapter = get_default_audio_adapter()
|
adapter = get_default_audio_adapter()
|
||||||
waveform, _ = adapter.load(TEST_AUDIO_DESCRIPTOR)
|
waveform, _ = adapter.load(TEST_AUDIO_DESCRIPTOR)
|
||||||
for configuration, instruments in TEST_CONFIGURATIONS:
|
for configuration, instruments in TEST_CONFIGURATIONS.items():
|
||||||
separator = Separator(configuration)
|
separator = Separator(configuration)
|
||||||
prediction = separator.separate(waveform)
|
prediction = separator.separate(waveform)
|
||||||
assert len(prediction) == 2
|
assert len(prediction) == 2
|
||||||
@@ -35,7 +35,7 @@ def test_separate():
|
|||||||
|
|
||||||
def test_separate_to_file():
|
def test_separate_to_file():
|
||||||
""" Test file based separation. """
|
""" Test file based separation. """
|
||||||
for configuration, instruments in TEST_CONFIGURATIONS:
|
for configuration, instruments in TEST_CONFIGURATIONS.items():
|
||||||
separator = Separator(configuration)
|
separator = Separator(configuration)
|
||||||
with TemporaryDirectory() as directory:
|
with TemporaryDirectory() as directory:
|
||||||
separator.separate_to_file(
|
separator.separate_to_file(
|
||||||
|
|||||||
Reference in New Issue
Block a user