-
Couldn't load subscription status.
- Fork 240
Improve test coverage #154
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
base: dev
Are you sure you want to change the base?
Improve test coverage #154
Conversation
7286ce1 to
c68fc47
Compare
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.
For me the test_listen test fails
> assert len(glob(join(activations_folder, '*.wav'))) == 1
E AssertionError: assert 0 == 1
E + where 0 = len([])
E + where [] = glob('/tmp/tmpyxkeafkq/activations/*.wav')
E + where '/tmp/tmpyxkeafkq/activations/*.wav' = join('/tmp/tmpyxkeafkq/activations', '*.wav')
test/scripts/test_listen.py:40: AssertionError
Complete test log: https://termbin.com/uto1
| @@ -0,0 +1,40 @@ | |||
| #!/usr/bin/env python3 | |||
| # Copyright 2019 Mycroft AI Inc. | |||
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.
2020
|
Does it consistently happen?
…On Thu, Apr 30, 2020, 2:32 AM Åke ***@***.***> wrote:
***@***.**** commented on this pull request.
For me the test_listen test fails
> assert len(glob(join(activations_folder, '*.wav'))) == 1
E AssertionError: assert 0 == 1
E + where 0 = len([])
E + where [] = glob('/tmp/tmpyxkeafkq/activations/*.wav')
E + where '/tmp/tmpyxkeafkq/activations/*.wav' = join('/tmp/tmpyxkeafkq/activations', '*.wav')
test/scripts/test_listen.py:40: AssertionError
Complete test log: https://termbin.com/uto1
------------------------------
In test/scripts/test_listen.py
<#154 (comment)>
:
> @@ -0,0 +1,40 @@
+#!/usr/bin/env python3
+# Copyright 2019 Mycroft AI Inc.
2020
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#154 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABM2KS5MDI3IFFOJRO4VMQLRPESRRANCNFSM4MSN7R5A>
.
|
|
Yes every time. I've made sure to rerun the precise setup.py aswell |
This allows clean exiting of the runner when used with a ReadWriteStream
This ensures rounding is handled properly. This also fixes a bug where 1.0 would be mapped to 32768 and converted back as -1
It's possible that this could cause a model to activate less at the 0.5 threshold because the center wasn't adjusted properly
Fixtures are used consistently A new TempFolder class has been created for reusability A session-wide trained_model fixture has been added to speed up testing
c68fc47 to
4cc1efb
Compare
This refactors and improves test coverage. As a result, some issues with those tests were resolved.