mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 03:18:25 -04:00
Rename constants to populations
This is a better name for the module because it’s: - not just constants, there’s a method in here now - only stuff to do with populations, not other kinds of constants
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
from notifications_utils.serialised_model import SerialisedModelCollection
|
from notifications_utils.serialised_model import SerialisedModelCollection
|
||||||
from werkzeug.utils import cached_property
|
from werkzeug.utils import cached_property
|
||||||
|
|
||||||
from .constants import CITY_OF_LONDON
|
|
||||||
from .polygons import Polygons
|
from .polygons import Polygons
|
||||||
|
from .populations import CITY_OF_LONDON
|
||||||
from .repo import BroadcastAreasRepository
|
from .repo import BroadcastAreasRepository
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ from pathlib import Path
|
|||||||
import geojson
|
import geojson
|
||||||
from notifications_utils.formatters import formatted_list
|
from notifications_utils.formatters import formatted_list
|
||||||
|
|
||||||
from constants import (
|
from polygons import Polygons
|
||||||
|
from populations import (
|
||||||
BRYHER,
|
BRYHER,
|
||||||
CITY_OF_LONDON,
|
CITY_OF_LONDON,
|
||||||
MEDIAN_AGE_RANGE_UK,
|
MEDIAN_AGE_RANGE_UK,
|
||||||
@@ -15,7 +16,6 @@ from constants import (
|
|||||||
SMARTPHONE_OWNERSHIP_BY_AGE_RANGE,
|
SMARTPHONE_OWNERSHIP_BY_AGE_RANGE,
|
||||||
estimate_number_of_smartphones_for_population,
|
estimate_number_of_smartphones_for_population,
|
||||||
)
|
)
|
||||||
from polygons import Polygons
|
|
||||||
from repo import BroadcastAreasRepository
|
from repo import BroadcastAreasRepository
|
||||||
|
|
||||||
source_files_path = Path(__file__).resolve().parent / 'source_files'
|
source_files_path = Path(__file__).resolve().parent / 'source_files'
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from app.broadcast_areas import (
|
|||||||
BroadcastAreasRepository,
|
BroadcastAreasRepository,
|
||||||
broadcast_area_libraries,
|
broadcast_area_libraries,
|
||||||
)
|
)
|
||||||
from app.broadcast_areas.constants import CITY_OF_LONDON
|
from app.broadcast_areas.populations import CITY_OF_LONDON
|
||||||
|
|
||||||
|
|
||||||
def test_loads_libraries():
|
def test_loads_libraries():
|
||||||
|
|||||||
Reference in New Issue
Block a user