-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[AIRFLOW-6058] Running tests with pytest #6472
Conversation
Oh just forgot it is not ready for review, sry 😬 |
I can't wait to finally have pytest 😁 |
b53a5a9
to
45b7cfd
Compare
45b7cfd
to
af8a3ad
Compare
Is there any place (JIRA ticket or discussion) where I can know why we want to move towards |
e62a969
to
6f8cc80
Compare
6f8cc80
to
20f7cad
Compare
dfcaebd
to
fa61eeb
Compare
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.
Some small comments.
Codecov Report
@@ Coverage Diff @@
## master #6472 +/- ##
==========================================
+ Coverage 83.9% 84.64% +0.73%
==========================================
Files 668 669 +1
Lines 37687 37703 +16
==========================================
+ Hits 31622 31912 +290
+ Misses 6065 5791 -274
Continue to review full report at Codecov.
|
d939d60
to
88b7c0a
Compare
9729f0f
to
dc84e09
Compare
This commit runs Airflow's test suite using pytest. fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest fixup! [AIRFLOW-6058] Running tests with pytest
# Initialize kerberos | ||
kerberos = os.environ.get("KRB5_KTNAME") | ||
if kerberos: | ||
subprocess.call(["kinit", "-kt", kerberos, "airflow"]) |
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 should probably be check_call
- if the kinit
fails this won't throw an error.
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.
Good call. @nuclearpinguin -> something as a follow up (including the setting of pytest as default test runner.
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest. (cherry picked from commit e61025e)
This commit runs Airflow's test suite using pytest.
Make sure you have checked all steps below.
Jira
Description
This PR switches nosetest to pytest. I tried to keep required changes to minimum.
What I have already learned is that:
I am open to any suggestions and help.
Tests
Commits
Documentation