Skip to content

Commit

Permalink
Mock get_full_csv_file_name
Browse files Browse the repository at this point in the history
  • Loading branch information
juuso-j committed May 3, 2024
1 parent d912edb commit b5cc7d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smbackend_turku/tests/test_charging_stations.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@


@pytest.mark.django_db
@patch("mobility_data.importers.charging_stations.get_csv_file_name")
@patch("mobility_data.importers.charging_stations.get_full_csv_file_name")
def test_charging_stations_import(
get_csv_file_name_mock,
get_full_csv_file_name_mock,
municipality,
administrative_division,
administrative_division_type,
Expand All @@ -32,7 +32,7 @@ def test_charging_stations_import(
id=42, name="Vapaa-aika", last_modified_time=datetime.now(utc_timezone)
)
file_name = f"{settings.BASE_DIR}/mobility_data/tests/data/charging_stations.csv"
get_csv_file_name_mock.return_value = file_name
get_full_csv_file_name_mock.return_value = file_name
import_charging_stations(
logger=logger,
config=config,
Expand Down

0 comments on commit b5cc7d2

Please sign in to comment.