Skip to content

Commit 629e511

Browse files
crowdusdanoscarmike
authored andcommitted
fix: refactored MP3 file creation test for Hybrid glossaries samples [(#2379)](#2379)
* fix: refactored MP3 file creation test * fix: lint
1 parent 0fdc938 commit 629e511

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

translation/samples/snippets/hybrid_glossaries/hybrid_tutorial_tests.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import filecmp
1615
import os
1716
import sys
1817

@@ -97,7 +96,6 @@ def test_translate_glossary():
9796

9897
def test_tts_standard(capsys):
9998
outfile = 'resources/test_standard_text.mp3'
100-
expected_outfile = 'resources/expected_standard_text.mp3'
10199
textfile = 'resources/standard_format.txt'
102100

103101
with open(textfile, 'r') as f:
@@ -107,12 +105,6 @@ def test_tts_standard(capsys):
107105

108106
# Assert audio file generated
109107
assert os.path.isfile(outfile)
110-
111-
# Assert audio file generated correctly
112-
assert filecmp.cmp(outfile,
113-
expected_outfile,
114-
shallow=True)
115-
116108
out, err = capsys.readouterr()
117109

118110
# Assert success message printed

0 commit comments

Comments
 (0)