Skip to content

Commit

Permalink
Get SHOW_EONI_STATIONS_ALL_THE_TIME from env
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoWill committed Dec 11, 2024
1 parent e0650dd commit 9a33a76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from unittest.mock import patch

import pytest
from django.test import override_settings

from addressbase.tests.factories import UprnToCouncilFactory
from context_managers import check_for_console_errors
Expand Down Expand Up @@ -164,6 +165,7 @@ def bt_15_3jx_station_data():
)


@override_settings(SHOW_EONI_STATIONS_ALL_THE_TIME=True)
@pytest.mark.django_db
def test_northern_ireland_with_station_no_election(
page,
Expand Down
4 changes: 3 additions & 1 deletion polling_stations/settings/constants/importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ class EONIImportScheme(models.TextChoices):

EONI_IMPORT_SCHEME = EONIImportScheme.NATIONAL

SHOW_EONI_STATIONS_ALL_THE_TIME = True
SHOW_EONI_STATIONS_ALL_THE_TIME = os.environ.get(
"SHOW_EONI_STATIONS_ALL_THE_TIME", False
)

0 comments on commit 9a33a76

Please sign in to comment.