-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add CLI option to force output resample rate #62
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can't run the ui anymore:
|
Hi Christophe,
I'm afraid tests are not passing. I'll look when I get some time, but feel
free to resubmit if you manage to fix them.
======================================================================
ERROR: test_validate_args (testcases.batch.BatchUtils)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/gautier/Downloads/soundconverter-resample-rate/tests/testcases/batch.py",
line 268, in test_validate_args
self.assertFalse(validate_args({'output-resample': 160}))
File
"/usr/local/lib/python3.8/dist-packages/soundconverter/interface/batch.py",
line 243, in validate_args
"Possible values for -R or --output-resample option are
{rates}".format(rates=", ".join(rates))
TypeError: sequence item 0: expected str instance, int found
======================================================================
FAIL: test_set_output_sample (testcases.batch.BatchUtils)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/gautier/Downloads/soundconverter-resample-rate/tests/testcases/batch.py",
line 370, in test_set_output_sample
self.assertEqual(44100, gio_settings.get_boolean('output-resample'))
AssertionError: 44100 != True
======================================================================
FAIL: test_set_output_resample (testcases.integration.BatchIntegration)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/gautier/Downloads/soundconverter-resample-rate/tests/testcases/integration.py",
line 464, in test_set_output_resample
self.assertIsNone(gio_settings.get_boolean('output-resample'))
AssertionError: False is not None
======================================================================
FAIL: test_conversion_pattern (testcases.integration.GUI)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/gautier/Downloads/soundconverter-resample-rate/tests/testcases/integration.py",
line 911, in test_conversion_pattern
self.assertTrue(os.path.isfile(
AssertionError: False is not true
…On Sun, 16 Jan 2022 at 19:06, Christophe Henry ***@***.***> wrote:
------------------------------
You can view, comment on, or merge this pull request online at:
#62
Commit Summary
- 57701ad
<57701ad>
Add --output-rate CLI option
File Changes
(5 files <https://github.com/kassoulet/soundconverter/pull/62/files>)
- *M* bin/soundconverter
<https://github.com/kassoulet/soundconverter/pull/62/files#diff-3eb06c7fe175a6f355c71601a77e3aa8ad5eb30568a21997d11f845634f2fe26>
(9)
- *M* soundconverter/interface/batch.py
<https://github.com/kassoulet/soundconverter/pull/62/files#diff-8eec72c7de924035b6a71d35ed9844a97e06f32d7deb9c7fc4b5469e2fe8d988>
(15)
- *M* soundconverter/interface/preferences.py
<https://github.com/kassoulet/soundconverter/pull/62/files#diff-a1405c5cf542562cd116d58fb2e8cd1c82b147aa386b94ae48b4d43e4e1ab765>
(4)
- *M* tests/testcases/batch.py
<https://github.com/kassoulet/soundconverter/pull/62/files#diff-3b80b3b0ea21ae5c9374ed89ddb3487196649760bf6c72dc97eaa8b305344cab>
(20)
- *M* tests/testcases/integration.py
<https://github.com/kassoulet/soundconverter/pull/62/files#diff-5f9c3f5fc52b012941051a7d03d5d88a724d3f83cb68e46ab75a79be49d6ec64>
(27)
Patch Links:
- https://github.com/kassoulet/soundconverter/pull/62.patch
- https://github.com/kassoulet/soundconverter/pull/62.diff
—
Reply to this email directly, view it on GitHub
<#62>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAO4JOT4IG2CYPP3VO73TUWMCLDANCNFSM5MDBCNPQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
christophehenry
force-pushed
the
resample-rate
branch
2 times, most recently
from
January 17, 2022 10:44
c4629c6
to
10e7779
Compare
christophehenry
commented
Jan 17, 2022
@sezanzeb Fixed. |
christophehenry
force-pushed
the
resample-rate
branch
from
January 17, 2022 13:43
10e7779
to
87732e8
Compare
christophehenry
commented
Jan 17, 2022
Nice, thank you Christophe ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.