Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug 1455246 - Improve pytest environment. (#972)
* Fix bug 1455246 - Improve pytest environment. This commit moves the pytest configuration into a more discoverable file (pytest.ini), and changes it to run tests in a more standard manner. Running pytest now runs all django tests in the pontoon folder (and not tests in /tests) and reuses the database between runs. It also enables passing files and folders to the pytest command. * Moved batch tests back to pontoon. * Moved teams tests back to pontoon. * Fixed teams tests. * Moved machinery tests back to pontoon. * Fix machinery tests. * Moved tags tests back to pontoon. * Moved some fixture files. * Migrated the site_matrix fixture over, moved it to a dedicated test app. * Load base fixtures for all tests. * Fix tags tests. * Run migrations every time, as migrations create data that is required by some tests. * Remove django test runnner. * Fixed PEP8 violations, added a missing init file. * Moved base tests back to pontoon. * Fix base tests. * Moved checks tests back to pontoon. * Fix checks tests. * Refactor fixtures to avoid code duplication. * Removed remains of old pytest directory. * Use factories from test app. * Moved final checks test to pontoon. * Address review comments.
- Loading branch information
Showing
104 changed files
with
4,749 additions
and
4,372 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.