Skip to content

Commit

Permalink
Fixed test I broke in 452f6db refs #31
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 20, 2020
1 parent 452f6db commit afd934f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_rockybeaches.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ async def test_tide_data_for_place(db_path):
tide_data_for_place = extra_template_vars(datasette)["tide_data_for_place"]
tide_data = await tide_data_for_place("pillar-point", datetime.date(2020, 8, 19))
heights = tide_data.pop("heights")
svg_points = tide_data.pop("svg_points")
expected = {
"minimas": [
{"time": "05:42", "time_pct": 23.75, "feet": -0.77},
Expand Down Expand Up @@ -64,6 +65,8 @@ async def test_tide_data_for_place(db_path):
"time": "22:48",
"time_pct": 95.0,
}
assert svg_points.startswith("0,6.7")
assert len(svg_points.split()) == 240


@pytest.mark.parametrize(
Expand Down

0 comments on commit afd934f

Please sign in to comment.