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
Minor flowetl tweaks #929
Minor flowetl tweaks #929
Conversation
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.
👍
|
||
@pytest.fixture(scope="session") | ||
def flowetl_mounts_dir(): | ||
return os.path.abspath(os.path.join(here, "..", "..", "mounts")) |
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.
Just a note for the future that it would be preferable if this stuff used tmpdirs instead of relying on empty directories we've tricked git into keeping around.
Codecov Report
@@ Coverage Diff @@
## master #929 +/- ##
========================================
- Coverage 93.16% 92% -1.16%
========================================
Files 130 130
Lines 6657 6657
Branches 696 696
========================================
- Hits 6202 6125 -77
- Misses 331 400 +69
- Partials 124 132 +8
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #929 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 130 130
Lines 6657 6657
Branches 696 696
=======================================
Hits 6202 6202
Misses 331 331
Partials 124 124
Continue to review full report at Codecov.
|
Just a few tweaks from my trying out #858, mostly just renamings to make some things a little more obvious at a glance.
I have:
Description
TAG
toFLOWETL_TESTS_CONTAINERS_TAG
tag
fixture tocontainer_tag
test_find_files_non_default_filter
).os.getcwd()
is used to determine themounts
folder, which relies on the tests being run in the correct directory. I have introduced a fixtureflowetl_mounts_dir
to make things slightly more robust.data_dir
topostgres_data_dir_for_tests
AIRFLOW_HOME
andTESTING
env vars are set when running the tests.test_airflow_home_dir
toairflow_home_dir_for_tests
because the former sounds like it's a pytest test function.wait_for_completion