diff --git a/apps/state/config/config.exs b/apps/state/config/config.exs index 5f8606c4..23ba3784 100644 --- a/apps/state/config/config.exs +++ b/apps/state/config/config.exs @@ -412,6 +412,26 @@ config :state, :stops_on_route, "place-DB-2222", "place-DB-2205" ], + {"CR-Providence", 0} => [ + "place-DB-2265", + "place-DB-2258", + "place-DB-2249", + "place-DB-2240", + "place-DB-2230", + "place-DB-2222", + "place-DB-2205", + "place-DB-0095" + ], + {"CR-Providence", 1} => [ + "place-DB-2265", + "place-DB-2258", + "place-DB-2249", + "place-DB-2240", + "place-DB-2230", + "place-DB-2222", + "place-DB-2205", + "place-DB-0095" + ], {"CR-Fairmount", 0} => [ "place-FB-0166", "place-FB-0148", diff --git a/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs b/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs index 0eff8bf4..971a7aed 100644 --- a/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs +++ b/apps/state_mediator/test/state_mediator/integration/gtfs_test.exs @@ -198,24 +198,24 @@ defmodule StateMediator.Integration.GtfsTest do test "Providence/Stoughton has 2 non-ignored shapes each direction" do [shapes_0, shapes_1] = shapes_in_both_directions("CR-Providence") - assert [%{name: "South Station - Wickford Junction"}, %{name: "South Station - Stoughton"}] = + assert [ + %{name: "South Station - Wickford Junction"}, + %{id: "9890004"} + ] = shapes_0 + + assert [%{name: "Wickford Junction - South Station"}, %{id: "9890003"}] = shapes_1 + end + + test "Newburyport/Rockport has 2 non-ignored shapes each direction" do + [shapes_0, shapes_1] = shapes_in_both_directions("CR-Newburyport") + + assert [%{name: "North Station - Rockport"}, %{name: "North Station - Newburyport"}] = shapes_0 - assert [%{name: "Wickford Junction - South Station"}, %{name: "Stoughton - South Station"}] = + assert [%{name: "Rockport - North Station"}, %{name: "Newburyport - North Station"}] = shapes_1 end - # Disable Newburyport/Rockport Line check while Rockport Branch is closed, Fall 2022 - # test "Newburyport/Rockport has 2 non-ignored shapes each direction" do - # [shapes_0, shapes_1] = shapes_in_both_directions("CR-Newburyport") - # - # assert [%{name: "North Station - Rockport"}, %{name: "North Station - Newburyport"}] = - # shapes_0 - # - # assert [%{name: "Rockport - North Station"}, %{name: "Newburyport - North Station"}] = - # shapes_1 - # end - test "all shuttle shapes have negative priority" do invalid_shapes = for shape <- State.Shape.all(), String.ends_with?(shape.id, "-S"), shape.priority >= 0 do