-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests were failing because the model changed to using SingleLineString but tests weren't updated and were still using String. This updates modeled_types to use TryFrom as the primary source of conversion logic, delegating to it in Deserialize. This simplifies using the new types in tests, and tests our logic rather than serde. Controller tests can then use try_into to get the expected type. Because we're no longer diverting through serde, we no longer need to awkwardly quote data strings in the tests.
- Loading branch information
Showing
3 changed files
with
148 additions
and
69 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