Merge ~smoser/git-ubuntu:fix/run-all-tests into git-ubuntu:master
Proposed by
Scott Moser
Status: | Needs review |
---|---|
Proposed branch: | ~smoser/git-ubuntu:fix/run-all-tests |
Merge into: | git-ubuntu:master |
Diff against target: |
985 lines (+451/-396) 9 files modified
gitubuntu/build.py (+0/-43) gitubuntu/build_test.py (+50/-0) gitubuntu/lint.py (+0/-47) gitubuntu/lint_test.py (+52/-0) gitubuntu/repo_builder.py (+0/-224) gitubuntu/repo_builder_test.py (+245/-0) gitubuntu/versioning.py (+0/-81) gitubuntu/versioning_test.py (+103/-0) snap-wrappers/wrappers/git-ubuntu-self-test (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
git-ubuntu developers | Pending | ||
Review via email: mp+358413@code.staging.launchpad.net |
Commit message
Move tests into files named with _test.
Separate existing test functions into their own '_test.py' files.
This is not strictly necessary, but more common.
It is no longer necessary to rely on shell expansion of gitubuntu/*
to tell pytest which files to run on as it will look at the files
named _test.py. So we've changed
snap-wrappers/
directly.
Also fix flake8 for newly added test files.
Description of the change
see commit message
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
If you want to keep _test functions in the same files, we can do that.
But I would suggest that then we add a pytestrc file.
We could write content to a temp file and then execute with '-c <filename>'
so that it would all be contained in
./snap- wrappers/ wrappers/ git-ubuntu- self-test