-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
convert 027 cycle test #6094
convert 027 cycle test #6094
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
2cc3f30
to
5b82a2c
Compare
def models(self): | ||
return "simple_cycle_models" | ||
|
||
@property |
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.
Note: TestSimpleCycle.test_postgres_simple_cycle
and TestComplexCycle.test_postgres_simple_cycle
weren't previously detected as tests because of the @property
decorator:
❯ python3 -m pytest -m profile_postgres test/integration/027_cycle_tests
============================================= test session starts ==============================================
platform darwin -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0
rootdir: /Users/michelleark/src/dbt-core, configfile: pytest.ini
plugins: xdist-2.5.0, forked-1.4.0, csv-3.0.0, logbook-1.2.0, flaky-3.7.0, mock-3.10.0, dotenv-0.5.2, cov-4.0.0
collected 0 items
============================================ no tests ran in 0.98s =============================================
Removing the decorator resulted in successful test runs locally though:
❯ python3 -m pytest -m profile_postgres test/integration/027_cycle_tests
============================================= test session starts ==============================================
platform darwin -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0
rootdir: /Users/michelleark/src/dbt-core, configfile: pytest.ini
plugins: xdist-2.5.0, forked-1.4.0, csv-3.0.0, logbook-1.2.0, flaky-3.7.0, mock-3.10.0, dotenv-0.5.2, cov-4.0.0
collected 2 items
test/integration/027_cycle_tests/test_cycles.py .. [100%]
============================================== 2 passed in 2.00s ===============================================
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.
🎉 Looks good!
resolves #6093
Description
Checklist
changie new
to create a changelog entry