Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
docNord committed Apr 24, 2024
1 parent 7cd1bb6 commit e1c2faa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/test_unit_smhi.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"""SMHI unit tests."""

from unittest.mock import MagicMock, patch

import pytest
from smhi.smhi import SMHI
import pandas as pd

from smhi.smhi import SMHI


class TestUnitSMHI:

Check failure on line 11 in tests/unit/test_unit_smhi.py

View workflow job for this annotation

GitHub Actions / lint (3.11)

Ruff (I001)

tests/unit/test_unit_smhi.py:3:1: I001 Import block is un-sorted or un-formatted
"""Unit tests for SMHI class."""
Expand Down Expand Up @@ -152,7 +154,7 @@ def test_find_stations_by_city(
Args:
"""
client = SMHI()
data = client._find_stations_by_city(parameter, city, distance)
_ = client._find_stations_by_city(parameter, city, distance)
mock_nominatim.assert_called_once()

@pytest.mark.parametrize("distance", [(0), (50)])
Expand Down

0 comments on commit e1c2faa

Please sign in to comment.