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 (#505)
BREAKING CHANGE: update to serialization requires regeneration of snapshots Migration Guide * `pytest --snapshot-update` to regenerate amber snapshots
- Loading branch information
Showing
15 changed files
with
336 additions
and
345 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
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}, | ||
) | ||
--- | ||
# --- |
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_canadian_name🇨🇦 | ||
'Name should be test_canadian_name🇨🇦.' | ||
--- | ||
# --- |
4 changes: 2 additions & 2 deletions
4
tests/examples/__snapshots__/test_custom_snapshot_name_suffix.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,6 +1,6 @@ | ||
# name: test_snapshot_custom_snapshot_name_suffix[test_is_amazing] | ||
'Syrupy is amazing!' | ||
--- | ||
# --- | ||
# name: test_snapshot_custom_snapshot_name_suffix[test_is_awesome] | ||
'Syrupy is awesome!' | ||
--- | ||
# --- |
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
Oops, something went wrong.