-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use pytest #1143
Use pytest #1143
Conversation
Apologies if I'm being naive but could we just use and call E: Never mind |
Sure, but it's IMO a nicer experience. |
1763795
to
19ff2d9
Compare
cc7c630
to
c356692
Compare
If you look at https://github.com/tjcsl/ion/pull/1143/checks?check_run_id=2703066197, you can see the 21 previously failing tests that weren't being run for whatever reason. |
Interesting, I can't replicate these failures using pytest or |
I can repo locally by running pytest in my ion venv. |
Both |
Oh... Which forces them to use sqlite3, which makes stuff pass that doesn't w/ postgres (like the column length assertions). So it's not so much an issue with ./manage.py test as an issue w/ sqlite. Given the apparently not great compatibility w/ sqlite, I'd consider switching the ci to use postgres. |
1cf2e90
to
33d9005
Compare
you've got some weird branch conflicts going on here...targeting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to be a fairly extensive PR to fix all of the issues that aren't being caught with the current sqlite database. We also want to be able to run these tests locally, which is going to involve removing the in memory testing altogether since that isn't compatible with postgres. Do you want to (1) leave this PR at just switching CI to pytest and the fixes you made to a few tests and I'll merge it and deal with patching everything else and switching local testing, (2) add onto this, patching everything and switching to postgres for local testing or (3) something else?
c980682
to
3e5d7f1
Compare
07c49f5
to
18287f1
Compare
Yeah, I think I'll just focus this pr on the pytest switch and leave sqlite->postgres to #1144. |
ff6a23f
to
589334d
Compare
setup.py test is deprecated, switch to pytest. Also fix a bunch of warnings it flagged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
setup.py test is deprecated, switch to pytest.