File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ def test_align_something(self):
9696 os .system ("ls -la " + tmpdir )
9797 print (result .output )
9898 self .assertEqual (result .exit_code , 0 )
99- self . assertTrue ( textgrid .exists () )
100- self . assertTrue ( wav_out .exists () )
99+ assert textgrid .exists ()
100+ assert wav_out .exists ()
101101
102102 with self .subTest ("ctc-segmenter extract" ):
103103 result = self .runner .invoke (
@@ -106,11 +106,11 @@ def test_align_something(self):
106106 if result .exit_code != 0 :
107107 print (result .output )
108108 self .assertEqual (result .exit_code , 0 )
109- self . assertTrue (( tmppath / "out/metadata.psv" ).exists () )
109+ assert ( tmppath / "out/metadata.psv" ).exists ()
110110 with open (txt , encoding = "utf8" ) as txt_f :
111111 non_blank_line_count = sum (1 for line in txt_f if line .strip ())
112112 for i in range (non_blank_line_count ):
113- self . assertTrue (( tmppath / f"out/wavs/segment{ i } .wav" ))
113+ assert ( tmppath / f"out/wavs/segment{ i } .wav" ). exists ( )
114114
115115
116116class MiscTests (TestCase ):
You can’t perform that action at this time.
0 commit comments