switch to pytest and pytest-django



Input Graveyard
Code Quality
3 years ago
a year ago


(Reporter: willkg, Assigned: willkg)



(Whiteboard: u=dev c=codequality p=1 s=input.2015q2)

We currently use nose and django-nose for tests. django-nose hasn't had a release since mid-2013. It's not actively maintained. nose is undergoing a complete rewrite for nose 2.

pytest and pytest-django are both actively maintained and pytest-django is more likely to work with newer versions of django as they're released.

We currently use pytest for the smoketests since that's what QA uses and our smoketest code is based on their infrastructure.

This bug covers researching switching from nose/django-nose to pytest/pytest-django. Namely:

1. does pytest meet the requirements we have (fail fast, run a specific test, test skipping, db reuse, fast test-and-fix development cycle, ...)?

2. how much effort is it to switch from nose to pytest?
Ran out of time this quarter. Pushing it off until next quarter.
Whiteboard: u=dev c=codequality p= s=input.2015q1 → u=dev c=codequality p= s=input.2015q2
I'm going to make this block Django 1.8 upgrade to answer the following question:

    Do we need to do this to upgrade to Django 1.8?

If not, we should push this off indefinitely. Further, we should do this when/if SUMO is ready to do the same so the two projects continue to have similar infrastructure.
Blocks: 1146686
Unblocking in favor of bug 1164031
No longer blocks: 1146686
Grabbing this now to toy with.
Assignee: nobody → willkg
Switching this from a research project to an implementation bug.

In a PR: https://github.com/mozilla/fjord/pull/609
Summary: [research] switch to pytest and pytest-django → switch to pytest and pytest-django
Whiteboard: u=dev c=codequality p= s=input.2015q2 → u=dev c=codequality p=1 s=input.2015q2
Landed in master.

This isn't related to our servers, so I'm going to close this out now.
Last Resolved: 3 years ago
Resolution: --- → FIXED
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.