-
Notifications
You must be signed in to change notification settings - Fork 94
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
Queue warning c8 #3541
Queue warning c8 #3541
Conversation
(Draft PR for now - I'll try to replace the functional test with a unit test). |
Ready for review. I replaced the functional test with a unit test. The same unit test probably could be used on 7.8/9.x as I didn't end up using the some master-only stuff that I thought I would. But, I think it doesn't matter. It'll be a non-flaky functional test for the old system. |
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.
Approving as unit test passed already on Travis.
cylc/flow/tests/test_config.py
Outdated
@@ -211,3 +212,32 @@ def test_family_inheritance_and_quotes(self): | |||
['MAINFAM_major1_minor10']) | |||
assert 'goodbye_0_major1_minor10' in \ | |||
config.runtime['descendants']['SOMEFAM'] | |||
|
|||
|
|||
def test_queue_config(caplog): |
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.
Today-I-Learned about caplog
🎉 thanks!
https://docs.pytest.org/en/latest/logging.html#caplog-fixture
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.
- Read and understood
- Tried on a suite of my own
- Run tests using pytest
- Travis runs
Concerned that Travis is failing - have restarted the job.
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.
Previous comment was to be an approval contingent on the tests passing.
I'll merge if Travis works on re-run.
Kicked tests. |
Tests passed on Travis after two kicks. Two approvals, ready to be merged. |
Thanks @kinow I was just looking at the test that failed: |
(Nope, can't see anything wrong with the test, will have to leave it as a mystery for now). |
These changes partially address #3470 (close after PR port to 7.8.x and 7.9.x as well)
master port of #3539 (full description there)
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.Appropriate tests are included (unit and/or functional).
Appropriate change log entry included.
No documentation update required. (No significant change to users, just fewer warnings)