-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add semantic model test to
test_contracts_graph_parsed.py
The tests in `test_contracts_graph_parsed.py` are meant to ensure that we can go from objects to dictionaries and back without any changes. We've had a desire to simplify these tests. Most tests in this file have three to four fixtures, this test only has one. What a test of this format ensures is that parsing a SemanticModel from a dictionary doesn't add/drop any keys from the dictionary and that when going back to the dictionary no keys are dropped. This style of test will still break whenever the semantic model (or sub objects) change. However now when that happens, only one fixture will have to be updated (whereas previously we had to update 3-4 fixtures).
- Loading branch information
Showing
1 changed file
with
109 additions
and
0 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