-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix_add_special_feature_tests #778 #783
base: master
Are you sure you want to change the base?
fix_add_special_feature_tests #778 #783
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for splitting the pull request.
First I have a question.
tests/test_special_features.py
Outdated
# Load the audio file for recognition | ||
# Attempt to record audio from the MP3 file | ||
with sr.AudioFile(self.AUDIO_FILE_EN_MP3) as source:r.record(source) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file contains tests for the Recognizer's recognize_sphinx()
method,
and I think the added test is for AudioFile
.
So I think it should be added to test_audio.py instead of test_special_features.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ftnext done ✅
The test_incompatible_audio_file_error test failed and raised the ValueError as mp3 format.
The test_sphinx_keywords fixed the tests before as they failed
Issue #778