Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
skrydal committed Sep 1, 2024
1 parent 8cd4294 commit 4282cd0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions metadata-ingestion/tests/unit/test_glue_source.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json
from pathlib import Path
from typing import Any, Callable, Dict, Optional, Tuple, Type, cast
from unittest.mock import patch
from unittest.mock import patch, MagicMock

import boto3
import pydantic
Expand Down Expand Up @@ -217,7 +217,7 @@ def prepare_mock_clients(mock_session):
@freeze_time(FROZEN_TIME)
@patch("datahub.ingestion.source.aws.aws_common.Session")
def test_glue_ingest(
mock_session,
mock_session: MagicMock,
tmp_path: Path,
pytestconfig: PytestConfig,
platform_instance: str,
Expand Down Expand Up @@ -484,7 +484,7 @@ def test_glue_stateful(

@patch("datahub.ingestion.source.aws.aws_common.Session")
def test_glue_with_delta_schema_ingest(
mock_session,
mock_session: MagicMock,
tmp_path: Path,
pytestconfig: PytestConfig,
) -> None:
Expand Down Expand Up @@ -525,7 +525,7 @@ def test_glue_with_delta_schema_ingest(

@patch("datahub.ingestion.source.aws.aws_common.Session")
def test_glue_with_malformed_delta_schema_ingest(
mock_session,
mock_session: MagicMock,
tmp_path: Path,
pytestconfig: PytestConfig,
) -> None:
Expand Down Expand Up @@ -572,7 +572,7 @@ def test_glue_with_malformed_delta_schema_ingest(
@freeze_time(FROZEN_TIME)
@patch("datahub.ingestion.source.aws.aws_common.Session")
def test_glue_ingest_include_table_lineage(
mock_session,
mock_session: MagicMock,
tmp_path: Path,
pytestconfig: PytestConfig,
mock_datahub_graph: Callable[[DatahubClientConfig], DataHubGraph],
Expand Down Expand Up @@ -673,7 +673,7 @@ def test_glue_ingest_include_table_lineage(
@freeze_time(FROZEN_TIME)
@patch("datahub.ingestion.source.aws.aws_common.Session")
def test_glue_ingest_include_column_lineage(
mock_session,
mock_session: MagicMock,
tmp_path: Path,
pytestconfig: PytestConfig,
mock_datahub_graph: Callable[[DatahubClientConfig], DataHubGraph],
Expand Down Expand Up @@ -776,7 +776,7 @@ def fake_schema_metadata(entity_urn: str) -> models.SchemaMetadataClass:
@freeze_time(FROZEN_TIME)
@patch("datahub.ingestion.source.aws.aws_common.Session")
def test_glue_ingest_with_profiling(
mock_session,
mock_session: MagicMock,
tmp_path: Path,
pytestconfig: PytestConfig,
) -> None:
Expand Down

0 comments on commit 4282cd0

Please sign in to comment.