-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use different tests for redactions (#578)
They're currently pointing to the same test file with different expressions, which causes volatile results given the `id`s are different
- Loading branch information
Showing
4 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
5 changes: 2 additions & 3 deletions
5
...andom_value_and_trailing_comma_match.snap → ...ts/test_redaction__with_random_value.snap
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,9 +1,8 @@ | ||
--- | ||
source: tests/test_redaction.rs | ||
expression: "&User {\n id: 11,\n username: \"john_doe\".to_string(),\n email: Email(\"john@example.com\".to_string()),\n extra: \"\".to_string(),\n }" | ||
source: insta/tests/test_redaction.rs | ||
expression: "&User {\n id: 42,\n username: \"john_doe\".to_string(),\n email: Email(\"john@example.com\".to_string()),\n extra: \"\".to_string(),\n }" | ||
--- | ||
id: "[id]" | ||
username: john_doe | ||
email: john@example.com | ||
extra: "" | ||
|
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
insta/tests/snapshots/test_redaction__with_random_value_inline_callback.snap
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,8 @@ | ||
--- | ||
source: insta/tests/test_redaction.rs | ||
expression: "&User {\n id: 23,\n username: \"john_doe\".to_string(),\n email: Email(\"john@example.com\".to_string()),\n extra: \"\".to_string(),\n }" | ||
--- | ||
id: "[id]" | ||
username: john_doe | ||
email: john@example.com | ||
extra: "" |
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