Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 19, 2024
1 parent 511f4c2 commit 7c6d835
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from airflow_diagrams.airflow import AirflowApiTree


@pytest.fixture()
@pytest.fixture
def airflow_api_tree(mocker: MockerFixture) -> AirflowApiTree:
"""
Mock the Airflow API.
Expand Down
10 changes: 5 additions & 5 deletions tests/test_class_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
from airflow_diagrams.class_ref import ClassRef, ClassRefMatcher, retrieve_class_refs


@pytest.fixture()
@pytest.fixture
def class_ref():
return ClassRef(
module_path="module.operators.path",
class_name="ClassNameOperator",
)


@pytest.fixture()
@pytest.fixture
def class_ref_mapped():
return ClassRef(
module_path="test.custom.module.operators.path",
class_name="ClassNameOperator",
)


@pytest.fixture()
@pytest.fixture
def class_ref_matcher(class_ref):
return ClassRefMatcher(
choices=[class_ref],
Expand All @@ -32,7 +32,7 @@ def class_ref_matcher(class_ref):
)


@pytest.fixture()
@pytest.fixture
def class_ref_matcher_with_mappings(class_ref, class_ref_mapped):
return ClassRefMatcher(
choices=[class_ref],
Expand All @@ -43,7 +43,7 @@ def class_ref_matcher_with_mappings(class_ref, class_ref_mapped):
)


@pytest.fixture()
@pytest.fixture
def match_kwargs(class_ref):
return dict(
query=class_ref,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def strip_white_space(*strings) -> str:
return "".join(strings).replace(" ", "").replace("\t", "").replace("\n", "")


@pytest.fixture()
@pytest.fixture
def _mock_dag(airflow_api_tree):
airflow_api_tree.dag_api.get_dags.return_value = dict(
dags=[
Expand Down
4 changes: 2 additions & 2 deletions tests/test_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)


@pytest.fixture()
@pytest.fixture
def airflow_task():
return AirflowTask(
class_ref=ClassRef(
Expand All @@ -27,7 +27,7 @@ def airflow_task():
)


@pytest.fixture()
@pytest.fixture
def airflow_dag(mocker):
return AirflowDag(dag_id="foo", dag_api=mocker.ANY)

Expand Down

0 comments on commit 7c6d835

Please sign in to comment.