Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
# files are served as static assets by the website (see settings.GEO_ASSET_URL_BASE).
_GEO_ASSETS: dict[str, dict[str, str]] = {
"brazil_states": {
"file": "brazil_states.topojson",
"file": "brasil_estados.topojson",
"feature": "uf",
},
"brazil_municipalities": {
"file": "brazil_municipalities.topojson",
"file": "brasil_municipios.topojson",
"feature": "Munic",
},
}
Expand Down
4 changes: 2 additions & 2 deletions tests/app/test_charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_points_at_the_static_geo_url(self):
node = _geo_url_node("brazil_states")

assert node == {
"url": f"{settings.GEO_ASSET_URL_BASE}/brazil_states.topojson",
"url": f"{settings.GEO_ASSET_URL_BASE}/brasil_estados.topojson",
"format": {"type": "topojson", "feature": "uf"},
}

Expand All @@ -207,7 +207,7 @@ def test_carries_no_inline_geometry(self):
node = _geo_url_node("brazil_municipalities")

assert "values" not in node
assert node["url"].endswith("/brazil_municipalities.topojson")
assert node["url"].endswith("/brasil_municipios.topojson")


class TestGeoStubNode:
Expand Down