Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Reenable tour command #559
Conversation
didrocks
added some commits
Jun 9, 2016
|
retest this please |
|
retest this please |
|
retest this please |
elopio
reviewed
Jun 9, 2016
| def tearDown(self): | ||
| with suppress(OSError): | ||
| if self.temp_dir: | ||
| shutil.rmtree(self.temp_dir) | ||
| + os.chdir(self.cwd) |
elopio
Jun 9, 2016
Member
I missed this in the previous review.
We have a fixture for tmp cwd, which also works as a tempdir. Maybe you can replace your set up and tear down with that fixture, or inherit from the base test case.
didrocks
Jun 9, 2016
Contributor
Oh, I didn't see that base class add that fixture, indeed, using this and preventing creating other temp directory when that makes sense for the tests.
|
all the commands need at least one integration test. That's not a blocker for this branch, but a blocker for releasing it. As always, I'm available to help. |
didrocks
added some commits
Jun 9, 2016
|
pushed the base class changes + integration tests for the tour command. As told on IRC, I didn't find all other commands beeing tested there, so I took the libery to create a new file for this command only and support 3 main tests cases. All other edge cases (copying to a directory which already has content, copying over a file…) are covered in unit tests. |
elopio
reviewed
Jun 9, 2016
| +# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| + | ||
| +import integration_tests | ||
| +import os |
|
|
|
retest this please |
didrocks commentedJun 9, 2016
Reenable "snapcraft tour" command with tests.
Added a small logic enhancements backed up with tests to ensure we don't nest default directory inside each other for multiple commands run.