Skip to content

Commit

Permalink
🎨 Remove parentheses PT023
Browse files Browse the repository at this point in the history
  • Loading branch information
mgardzinski committed Sep 26, 2024
1 parent fb90f1e commit 6bbf754
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/unit/test_mediatool.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
}


@pytest.mark.basic()
@pytest.mark.basic
def test_mediatool_credentials():
"""Test Mediatool credentials."""
MediatoolCredentials(user_id="test_user", token="test_token")


@pytest.mark.basic()
@pytest.mark.basic
@patch("viadot.sources.mediatool.get_source_credentials", return_value=None)
def test_missing_credentials(mock_get_source_credentials):
"""Test raise error without credentials."""
Expand All @@ -39,7 +39,7 @@ def test_missing_credentials(mock_get_source_credentials):
mock_get_source_credentials.assert_called_once()


@pytest.mark.functions()
@pytest.mark.functions
@patch("viadot.sources.mediatool.handle_api_response")
def test_get_organizations(mock_handle_api_response):
"""Test Mediatool `_get_organizations` function."""
Expand All @@ -54,7 +54,7 @@ def test_get_organizations(mock_handle_api_response):
assert result == expected_result


@pytest.mark.functions()
@pytest.mark.functions
@patch("viadot.sources.mediatool.handle_api_response")
def test_get_media_entries(mock_handle_api_response):
"""Test Mediatool `_get_media_entries` function."""
Expand All @@ -69,7 +69,7 @@ def test_get_media_entries(mock_handle_api_response):
assert result == expected_result


@pytest.mark.functions()
@pytest.mark.functions
@patch("viadot.sources.mediatool.handle_api_response")
def test_get_vehicles(mock_handle_api_response):
"""Test Mediatool `_get_vehicles` function."""
Expand All @@ -84,7 +84,7 @@ def test_get_vehicles(mock_handle_api_response):
assert result == expected_result


@pytest.mark.functions()
@pytest.mark.functions
@patch("viadot.sources.mediatool.handle_api_response")
def test_get_campaigns(mock_handle_api_response):
"""Test Mediatool `_get_campaigns` function."""
Expand All @@ -99,7 +99,7 @@ def test_get_campaigns(mock_handle_api_response):
assert result == expected_result


@pytest.mark.functions()
@pytest.mark.functions
@patch("viadot.sources.mediatool.handle_api_response")
def test_get_media_types(mock_handle_api_response):
"""Test Mediatool `_get_media_types` function."""
Expand All @@ -114,7 +114,7 @@ def test_get_media_types(mock_handle_api_response):
assert result == expected_result


@pytest.mark.functions()
@pytest.mark.functions
def test_rename_columns():
"""Test Mediatool `_rename_columns` function."""
df = pd.DataFrame({"col1": [1, 2], "col2": [3, 4]})
Expand All @@ -126,7 +126,7 @@ def test_rename_columns():
pd.testing.assert_frame_equal(result, expected_result)


@pytest.mark.connect()
@pytest.mark.connect
@patch("viadot.sources.mediatool.handle_api_response")
def test_api_connection(mock_handle_api_response):
"""Test Mediatool `api_connection` method."""
Expand All @@ -141,7 +141,7 @@ def test_api_connection(mock_handle_api_response):
assert result == expected_result


@pytest.mark.functions()
@pytest.mark.functions
@patch("viadot.sources.mediatool.handle_api_response")
def test_to_df(mock_handle_api_response):
"""Test Mediatool `to_df` method."""
Expand Down

0 comments on commit 6bbf754

Please sign in to comment.