Skip to content

Commit

Permalink
test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ErinLMoore committed Sep 14, 2023
1 parent 5228cb1 commit 8f6e7ca
Showing 1 changed file with 99 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,85 +204,105 @@ defmodule AlertProcessor.ServiceInfoCacheTest do
{:ok, route_info} = ServiceInfoCache.get_ferry_info(pid)

assert [
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Charlestown", "Long Wharf"],
headsigns: nil,
long_name: "Charlestown Ferry",
order: 0,
route_id: "Boat-F4",
route_type: 4,
short_name: "",
stop_list: [
{"Charlestown Navy Yard", "Boat-Charlestown", {42.372756, -71.052528}, 1},
{"Long Wharf (South)", "Boat-Long-South", {42.359448, -71.050498}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Hingham or Hull", "Long Wharf or Rowes Wharf"],
headsigns: nil,
long_name: "Hingham/Hull Ferry",
order: 1,
route_id: "Boat-F1",
route_type: 4,
short_name: "",
stop_list: [
{"Hingham", "Boat-Hingham", {42.253956, -70.919844}, 1},
{"Rowes Wharf", "Boat-Rowes", {42.355721, -71.049897}, 1},
{"Georges Island", "Boat-George", {42.319742, -70.930427}, 1},
{"Hull", "Boat-Hull", {42.303251, -70.920215}, 1},
{"Logan Airport Ferry Terminal", "Boat-Logan", {42.359789, -71.02734}, 1},
{"Long Wharf (North)", "Boat-Long", {42.360795, -71.049976}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Lewis Mall Wharf", "Long Wharf"],
headsigns: nil,
long_name: "East Boston Ferry",
order: 2,
route_id: "Boat-EastBoston",
route_type: 4,
short_name: "",
stop_list: [
{"Lewis Mall Wharf", "Boat-Lewis", {42.365867, -71.041958}, 1},
{"Long Wharf (North)", "Boat-Long", {42.360795, -71.049976}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Blossom Street Pier", "Long Wharf"],
headsigns: nil,
long_name: "Lynn Ferry",
order: 3,
route_id: "Boat-Lynn",
route_type: 4,
short_name: "",
stop_list: [
{"Blossom Street Pier", "Boat-Blossom", {42.45481, -70.94802}, 1},
{"Long Wharf (North)", "Boat-Long", {42.360795, -71.049976}, 1},
{"Long Wharf (South) - Gate 4", "Boat-Long-South-4", {42.359897, -71.04859}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Winthrop", "Central Wharf"],
headsigns: nil,
long_name: "Winthrop Ferry",
order: 4,
route_id: "Boat-F6",
route_type: 4,
short_name: "",
stop_list: [
{"Winthrop Landing", "Boat-Winthrop", {42.366711, -70.973302}, 1},
{"Quincy", "Boat-Quincy", {42.30132, -71.03201}, 1},
{"Logan Airport Ferry Terminal", "Boat-Logan", {42.359789, -71.02734}, 1},
{"Seaport/Fan Pier", "Boat-Fan", {42.353484, -71.04323}, 1},
{"Central Wharf (South)", "Boat-Aquarium", {42.358815, -71.048779}, 1}
]
}
] = route_info
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Charlestown",
"Long Wharf"],
headsigns: nil,
long_name: "Charlestown Ferry",
order: 0,
route_id: "Boat-F4",
route_type: 4,
short_name: "",
stop_list: [
{"Charlestown Navy Yard", "Boat-Charlestown",
{42.372756, -71.052528}, 1},
{"Long Wharf (South)", "Boat-Long-South",
{42.359448, -71.050498}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Hingham or Hull",
"Long Wharf or Rowes Wharf"],
headsigns: nil,
long_name: "Hingham/Hull Ferry",
order: 1,
route_id: "Boat-F1",
route_type: 4,
short_name: "",
stop_list: [
{"Hingham", "Boat-Hingham",
{42.253956, -70.919844}, 1},
{"Rowes Wharf", "Boat-Rowes",
{42.355721, -71.049897}, 1},
{"Georges Island", "Boat-George",
{42.319742, -70.930427}, 1},
{"Hull", "Boat-Hull", {42.303251, -70.920215}, 1},
{"Logan Airport Ferry Terminal", "Boat-Logan",
{42.359789, -71.02734}, 1},
{"Long Wharf (North)", "Boat-Long",
{42.360795, -71.049976}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Lewis Mall Wharf",
"Long Wharf"],
headsigns: nil,
long_name: "East Boston Ferry",
order: 2,
route_id: "Boat-EastBoston",
route_type: 4,
short_name: "",
stop_list: [
{"Lewis Mall Wharf", "Boat-Lewis",
{42.365867, -71.041958}, 1},
{"Long Wharf (North)", "Boat-Long",
{42.360795, -71.049976}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Blossom Street Pier",
"Long Wharf"],
headsigns: nil,
long_name: "Lynn Ferry",
order: 3,
route_id: "Boat-Lynn",
route_type: 4,
short_name: "",
stop_list: [
{"Blossom Street Pier", "Boat-Blossom",
{42.45481, -70.94802}, 1},
{"Long Wharf (North)", "Boat-Long",
{42.360795, -71.049976}, 1}
]
},
%AlertProcessor.Model.Route{
direction_names: ["Outbound", "Inbound"],
direction_destinations: ["Winthrop",
"Central Wharf"],
headsigns: nil,
long_name: "Winthrop Ferry",
order: 4,
route_id: "Boat-F6",
route_type: 4,
short_name: "",
stop_list: [
{"Winthrop Landing", "Boat-Winthrop",
{42.366711, -70.973302}, 1},
{"Quincy", "Boat-Quincy", {42.30132, -71.03201},
1},
{"Logan Airport Ferry Terminal", "Boat-Logan",
{42.359789, -71.02734}, 1},
{"Seaport/Fan Pier", "Boat-Fan",
{42.353484, -71.04323}, 1},
{"Central Wharf (South)", "Boat-Aquarium",
{42.358815, -71.048779}, 1}
]
}
] = route_info
end

test "get_stop returns the correct stop", %{pid: pid} do
Expand Down

0 comments on commit 8f6e7ca

Please sign in to comment.