-
Notifications
You must be signed in to change notification settings - Fork 442
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 snapcraft-parser integration test. #560
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
|
||
|
||
class TestParser(TestCase): | ||
'''Test bin/snapcraft-parser''' |
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 consistency, the comments are with three double quotes.
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.
Fixed.
Great, thanks. |
'https://wiki.ubuntu.com/snapcraft/parts?action=raw', | ||
'--output', 'parts.yaml'] | ||
with open(os.path.devnull, 'w') as devnull: | ||
subprocess.check_call(args, stderr=devnull, stdout=devnull) |
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.
use subprocess.DEVNULL
@ElOpio I've updated based on your comments. Thanks for the review. |
👍 |
Add a "Happy Path" integration test for snapcraft-parser. LP: #1590268
* Inherit from integration_tests.TestCase * Use subprocess.DEVNULL rather than opening /dev/null explicitly * Use double quotes for test docstring comments. * Add snapcraft_parser_command to integration_test.TestCase so autopkgtests can use the installed version.
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
OK to test |
Add a "Happy Path" integration test for snapcraft-parser. LP: #1590268
Add a "Happy Path" integration test for snapcraft-parser.
LP: #1590268