Closed
Bug 1417530
Opened 7 years ago
Closed 3 years ago
[tracker] Shift existing Pontoon tests to py.test
Categories
(Webtools Graveyard :: Pontoon, enhancement, P3)
Webtools Graveyard
Pontoon
Tracking
(Not tracked)
RESOLVED
MOVED
People
(Reporter: ryan, Assigned: jotes)
References
Details
Attachments
(7 files)
43 bytes,
text/x-github-pull-request
|
Details | Review | |
43 bytes,
text/x-github-pull-request
|
Details | Review | |
43 bytes,
text/x-github-pull-request
|
Details | Review | |
44 bytes,
text/x-github-pull-request
|
Details | Review | |
44 bytes,
text/x-github-pull-request
|
Details | Review | |
44 bytes,
text/x-github-pull-request
|
Details | Review | |
44 bytes,
text/x-github-pull-request
|
Details | Review |
After discussing adopting py.test for testing Pontoon, we agreed to translate some of the existing tests to py.test. This will allow us to see how the tests can be refactored, and the resources required to do so. Personally, it will allow me to go through the existing tests 8) There is also a question of how to format the layout for tests, ref: https://github.com/mozilla/pontoon/pull/758#issuecomment-344592174
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/70c067a248eae58594e57cadcb76ff396253e579 Touch bug 1417530 Add fixtures (#763) - Add site env to test fixtures - Add base fixtures - Add simple tests for test env - Add docstrings to fixtures
Comment 3•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/969c923c1978ca816edf5137f94b65c1f6e5d63f Touch bug #1417530 Add more fixtures (#770) - Add site_matrix fixture - Add translated resources fixtures - Add factories fixture - Add model factories - Add simple tests for fixtures - Update test env - include translated resources - set correct total_strings on resources
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Priority: -- → P3
Comment 5•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/8edca99f7fa39e5a26132075824cae614ce356fc Touch bug 1417530 Shift base model tests to pytest (#762) - Add fixtures for base model tests - Shift base model tests - Project - Shift base model tests - Repository - Shift base model tests - Locale - Shift base model tests - Translation - Shift base model tests - ProjectLocale - Shift base model tests - Entity - Shift base manager tests - User - Shift base manager tests - Entity - Remove old base model tests
Comment 6•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/3749ee7612a2467164485bacd2b1a000632021e6 Bug 1417530 - Install test requirements in docker. (#778) * Bug 1417530 - Install test requirements in docker. * Run tests with py.test during make dockertest.
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/17af08a74abe28cf383cee75473ce34541dc4ac6 Touch bug 1417530: Add more test fixtures - Add further factories to site_matrix - Add translated resourceX fixture - Add translation to factories
Comment 9•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/60897c61a41dd4274180d9a5c0cb5987ab9ceb08 Touch bug 1417530: Shift base view tests #796 - Shift base view tests - Translation - Shift base form tests - GetEntityForm - Shift machinery view tests - TM - Shift base view tests - Entity - Shift base view tests - TMX - Move tests data - Remove old base view tests - Move permission log form tests into forms directory
Comment 10•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/9aba759b5cabedd94e2b3eb547e65de26b874943 Touch bug 1417530 Shift remaining base tests to pytest #758 - Shift base command test - createsuperuser - Shift base util tests - Shift base adapter tests - Allauth - Shift base helper tests - Shift base signal test - Shift base placeables tests - Remove unused old test fixtures - Remove old tests
Comment 11•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/29a24362c97aeffa7ca817ad357bfc9e304576eb Touch Bug 1417530: Bring back as_simple_translation tests
Comment 12•6 years ago
|
||
Making this a tracker and taking. More bugs to follow!
Assignee: nobody → adrian
Summary: Shift existing Pontoon tests to py.test → [tracker] Shift existing Pontoon tests to py.test
Comment 13•6 years ago
|
||
What is the status of this bug? Do we also want to move to sync tests to pytest at some point? Before closing it, let's at least fix test_view_entity_exclude_entities which is failing randomly, which is annoying.
Comment 14•6 years ago
|
||
Work is not done here. Here's a list of files / modules that still need to be migrated: - administration/tests - api/tests - base/tests/test_views.py - contributors/tests.py - db/tests/test_lookups.py - localizations/tests.py - sync/tests - teams/tests.py Anyone willing to migrate one, some or all of these, feel free!
Comment 15•6 years ago
|
||
Commit pushed to master at https://github.com/mozilla/pontoon https://github.com/mozilla/pontoon/commit/c6b138b71fc4622c1d50faf3c7f5dbd42a9d0466 Bug 1417530 - Move administration tests to pytest.
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Updated•5 years ago
|
Assignee: adrian → nobody
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → poke
Status: NEW → ASSIGNED
Comment 18•4 years ago
|
||
Update - Here's a list of files / modules that still need to be migrated:
- base/tests/test_views.py
- contributors/tests.py
- db/tests/test_lookups.py
- sync/tests
Comment 19•4 years ago
|
||
Comment 20•4 years ago
|
||
Comment 21•4 years ago
|
||
Update - Here's a list of modules that still need to be migrated to pytest :
- sync/tests
Comment 22•3 years ago
|
||
*This bug has been moved to GitHub.* *Please check it out on https://github.com/mozilla/pontoon/issues.*
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → MOVED
Updated•3 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•