generated from tophat/new-project-kit
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(amber): change serialization to be py syntax like
BREAKING CHANGE: update to serialization requires regeneration of snapshots Migration Guide * `pytest --snapshot-update` to regenerate amber snapshots * `PropertyFilter` type is now explicit about keyword arguments * `PropertyMatcher` type is now explicit about keyword arguments
- Loading branch information
Showing
19 changed files
with
400 additions
and
353 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
2 changes: 1 addition & 1 deletion
2
tests/examples/__snaps_example__/test_custom_snapshot_directory.ambr
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# name: test_case_1 | ||
'Syrupy is amazing!' | ||
--- | ||
# --- |
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# name: test_snapshot_custom_class | ||
<class 'MyCustomClass'> { | ||
MyCustomClass( | ||
prop1=1, | ||
prop2='a', | ||
prop3=<class 'set'> { | ||
prop3=set({ | ||
1, | ||
2, | ||
3, | ||
}, | ||
} | ||
--- | ||
}), | ||
) | ||
# --- | ||
# name: test_snapshot_custom_repr_class | ||
MyCustomReprClass( | ||
prop1=1, | ||
prop2='a', | ||
prop3={1, 2, 3}, | ||
) | ||
--- | ||
# --- |
Oops, something went wrong.