-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: fix some typing issues in tests when models are checked
- Loading branch information
1 parent
57d2c5b
commit 34c51bd
Showing
22 changed files
with
113 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -357,6 +357,7 @@ def test_marks_as_unresolved_with_new_release( | |
assert group.status == GroupStatus.RESOLVED | ||
|
||
activity = Activity.objects.get(id=activity.id) | ||
assert activity.data is not None | ||
assert activity.data["version"] == "" | ||
|
||
assert GroupResolution.objects.filter(group=group).exists() | ||
|
@@ -371,6 +372,7 @@ def test_marks_as_unresolved_with_new_release( | |
assert group.status == GroupStatus.UNRESOLVED | ||
|
||
activity = Activity.objects.get(id=activity.id) | ||
assert activity.data is not None | ||
assert activity.data["version"] == "b" | ||
|
||
assert not GroupResolution.objects.filter(group=group).exists() | ||
|
@@ -431,11 +433,13 @@ def test_that_release_in_latest_activity_prior_to_regression_is_not_overridden( | |
assert group.status == GroupStatus.UNRESOLVED | ||
|
||
activity = Activity.objects.get(id=activity.id) | ||
assert activity.data is not None | ||
assert activity.data["version"] == "foobar" | ||
|
||
regressed_activity = Activity.objects.get( | ||
group=group, type=ActivityType.SET_REGRESSION.value | ||
) | ||
assert regressed_activity.data is not None | ||
assert regressed_activity.data["version"] == "b" | ||
assert regressed_activity.data["follows_semver"] is False | ||
|
||
|
@@ -493,12 +497,14 @@ def test_current_release_version_in_latest_activity_prior_to_regression_is_not_o | |
assert group.status == GroupStatus.UNRESOLVED | ||
|
||
activity = Activity.objects.get(id=activity.id) | ||
assert activity.data is not None | ||
assert activity.data["version"] == "b" | ||
assert activity.data["current_release_version"] == "pre foobar" | ||
|
||
regressed_activity = Activity.objects.get( | ||
group=group, type=ActivityType.SET_REGRESSION.value | ||
) | ||
assert regressed_activity.data is not None | ||
assert regressed_activity.data["version"] == "b" | ||
|
||
mock_send_activity_notifications_delay.assert_called_once_with(regressed_activity.id) | ||
|
@@ -555,11 +561,13 @@ def test_resolved_in_release_regression_activity_follows_semver( | |
assert group.status == GroupStatus.UNRESOLVED | ||
|
||
activity = Activity.objects.get(id=activity.id) | ||
assert activity.data is not None | ||
assert activity.data["version"] == "[email protected]" | ||
|
||
regressed_activity = Activity.objects.get( | ||
group=group, type=ActivityType.SET_REGRESSION.value | ||
) | ||
assert regressed_activity.data is not None | ||
assert regressed_activity.data["version"] == "[email protected]" | ||
assert regressed_activity.data["follows_semver"] is True | ||
assert regressed_activity.data["resolved_in_version"] == "[email protected]" | ||
|
@@ -835,6 +843,7 @@ def test_marks_as_unresolved_with_new_release_with_integration( | |
assert group.status == GroupStatus.RESOLVED | ||
|
||
activity = Activity.objects.get(id=activity.id) | ||
assert activity.data is not None | ||
assert activity.data["version"] == "" | ||
|
||
assert GroupResolution.objects.filter(group=group).exists() | ||
|
@@ -853,6 +862,7 @@ def test_marks_as_unresolved_with_new_release_with_integration( | |
assert group.status == GroupStatus.UNRESOLVED | ||
|
||
activity = Activity.objects.get(id=activity.id) | ||
assert activity.data is not None | ||
assert activity.data["version"] == "b" | ||
|
||
assert not GroupResolution.objects.filter(group=group).exists() | ||
|
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
Oops, something went wrong.