Skip to content

Commit

Permalink
fix PyDocStyle checks (apache#42557)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyl1u authored Sep 29, 2024
1 parent db1d12c commit 968abb2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/www/views/test_views_task_norun.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


@pytest.fixture(scope="module", autouse=True)
def reset_dagruns():
def _reset_dagruns():
"""Clean up stray garbage from other tests."""
clear_db_runs()

Expand Down
4 changes: 2 additions & 2 deletions tests/www/views/test_views_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@


@pytest.fixture(scope="module", autouse=True)
def reset_dagruns():
def _reset_dagruns():
"""Clean up stray garbage from other tests."""
clear_db_runs()


@pytest.fixture(autouse=True)
def init_dagruns(app):
def _init_dagruns(app):
with time_machine.travel(DEFAULT_DATE, tick=False):
triggered_by_kwargs = {"triggered_by": DagRunTriggeredByType.TEST} if AIRFLOW_V_3_0_PLUS else {}
app.dag_bag.get_dag("example_bash_operator").create_dagrun(
Expand Down
2 changes: 1 addition & 1 deletion tests/www/views/test_views_trigger_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


@pytest.fixture(autouse=True)
def initialize_one_dag():
def _initialize_one_dag():
with create_session() as session:
DagBag().get_dag("example_bash_operator").sync_to_db(session=session)
yield
Expand Down
2 changes: 1 addition & 1 deletion tests/www/views/test_views_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@


@pytest.fixture(autouse=True)
def clear_variables():
def _clear_variables():
with create_session() as session:
session.query(Variable).delete()

Expand Down

0 comments on commit 968abb2

Please sign in to comment.