Skip to content

fix lint in conftest #8324

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

Merged
merged 1 commit into from
Sep 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer/airflow_1_samples/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def airflow_database():
# We use separate directory for local db path per session
# by setting AIRFLOW_HOME env var, which is done in noxfile_config.py.

assert('AIRFLOW_HOME' in os.environ)
assert ('AIRFLOW_HOME' in os.environ)

airflow_home = os.environ["AIRFLOW_HOME"]
airflow_db = f"{airflow_home}/airflow.db"
Expand All @@ -36,4 +36,4 @@ def airflow_database():
airflow.utils.db.resetdb(rbac=None) # this command will change in Airflow 2.0

# Making sure we are using a data file there.
assert(os.path.isfile(airflow_db))
assert (os.path.isfile(airflow_db))