Added unit tests for rbt alias command
Review Request #10989 — Created April 4, 2020 and submitted
Added unit tests for rbt alias command
Test cases run on python 2.7.17 and 3.7.6.
- Test case validating output for '--list' option with defined alias - Test case validating output for '--list' option with undefined alias - Test case validating '--list' option in debug mode - Test case validating output for '--dry-run' option with defined alias - Test case validating output for '--dry-run' option with undefined alias - Test case validating '--dry-run' option with missing arg - Test case validating '--dry-run' option in debug mode
Summary | ID | Author |
---|---|---|
3ee90965956ba576879adf9f590a423e6ecc8f45 | kpatenio |
Description | From | Last Updated |
---|---|---|
For mentors: flake8 does not seem to like the fact that I have repeated dictionary keys in a couple test … |
kpatenio | |
Since this can get a bit weird-looking, the pattern we prefer is: config = { 'ALIASES': { ... } } … |
chipx86 | |
F601 dictionary key u'alias1' repeated with different values |
reviewbot | |
F601 dictionary key u'alias1' repeated with different values |
reviewbot | |
F601 dictionary key u'alias1' repeated with different values |
reviewbot | |
F601 dictionary key u'alias1' repeated with different values |
reviewbot | |
Mentioned this in another review request, but you'll want to use += for consistency and performance (this isn't performance-critical code, … |
chipx86 |
-
-
Since this can get a bit weird-looking, the pattern we prefer is:
config = { 'ALIASES': { ... } } with self.reviewboardrc(config): ...
Keeps it a lot more manageable.
-
Mentioned this in another review request, but you'll want to use
+=
for consistency and performance (this isn't performance-critical code, but still worth doing).
- Commits:
-
Summary ID Author 7535c8bc4abc73200423821a35e8a00b08f97973 kpatenio 3ee90965956ba576879adf9f590a423e6ecc8f45 kpatenio
Checks run (2 succeeded)
- Change Summary:
-
Updated description
- Testing Done:
-
Test cases run on python 2.7.17 and 3.7.6.
- Test case validating output for '--list' option with defined alias
- Test case validating output for '--list' option with undefined alias
- - Test case validating output for '--list' option with duplicated alias
- Test case validating '--list' option in debug mode
- Test case validating output for '--dry-run' option with defined alias
- Test case validating output for '--dry-run' option with undefined alias
- Test case validating '--dry-run' option with missing arg
- - Test case validating output for '--dry-run' option with duplicated alias
- Test case validating '--dry-run' option in debug mode