Skip to content

Commit ef4c511

Browse files
committed
Tests for Travis
1 parent 4f0766a commit ef4c511

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/test_twinnet.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ def test_generate_output_path(audio_file):
2121
assert twinnet._make_target_file_names(['1&*!!.wav']) == [['1&*!!_voice.wav', '1&*!!_bg_music.wav']]
2222
assert twinnet._make_target_file_names(['1', '2']) == [['1_voice.wav', '1_bg_music.wav'], ['2_voice.wav', '2_bg_music.wav']]
2323

24-
def test_twinnet_process_writes_to_file(audio_file, tmpdir):
25-
"""Requires `mad.pt` in `mad_twinnet/outputs/states` to work"""
26-
out_base = os.path.splitext(os.path.basename(audio_file))[0] + '_voice.wav'
27-
out_path = os.path.join(str(tmpdir), out_base)
28-
29-
assert twinnet.twinnet_process(audio_file, [[out_path, '']]) is True
30-
assert os.path.isfile(out_path)
24+
# Commented out for Travis since `mad.pt` not in Github repo
25+
# def test_twinnet_process_writes_to_file(audio_file, tmpdir):
26+
# """Requires `mad.pt` in `mad_twinnet/outputs/states` to work"""
27+
# out_base = os.path.splitext(os.path.basename(audio_file))[0] + '_voice.wav'
28+
# out_path = os.path.join(str(tmpdir), out_base)
29+
#
30+
# assert twinnet.twinnet_process(audio_file, [[out_path, '']]) is True
31+
# assert os.path.isfile(out_path)

0 commit comments

Comments
 (0)