-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(Predictions): Added the mox for predictions (#2036)
* test(Predictions): Added the mox for predictions * Added behaviour * Configured predictions repo, and updated predictions controller tests * Updated the prediction schedule and corresponding test * Updated realtime schedules to use prediction repo * Added updated the tests for transit near me * Updated the vehicle marker channel to use new predictions repo * Updated the finder_api to use the predictions repo pattern * Added new repo model to green * Added test pattern to trip_info * Removed function injection from green * Removed predictions injection * Alphabatized the configuration * Cleaned up predictions_test file * Fixed spacing * Moved repo mocks to own section * Added prediction factory * Added missing file * Added faker to predictions test * Added more factory usage for predictions and some random data * Remove redundant defaults
- Loading branch information
Showing
19 changed files
with
416 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defmodule Predictions.Repo.Behaviour do | ||
@moduledoc """ | ||
Behavior for an API client for fetching prediction data. | ||
""" | ||
|
||
@doc """ | ||
Return predictions for given params | ||
""" | ||
@callback all(Keyword.t()) :: [Predictions.Prediction.t()] | [] | ||
|
||
@doc """ | ||
Return predictions for give prarams ignoring the cache | ||
""" | ||
@callback all_no_cache(Keyword.t()) :: [Predictions.Prediction.t()] | [] | ||
end |
Oops, something went wrong.