forked from qgis/QGIS-Django
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate sentry into the django project (qgis#408)
* Integrate sentry into the django project * Init sentry when the dsn is specified * Fix test in GH actions * Update the url in valid_metadata_link
- Loading branch information
Showing
7 changed files
with
38 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,5 @@ geoip2==4.5.0 | |
django-matomo==0.1.6 | ||
uwsgi~=2.0 | ||
freezegun~=1.4 | ||
|
||
sentry-sdk~=2.2 |
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 |
---|---|---|
|
@@ -92,9 +92,13 @@ def test_plugin_new_version(self): | |
self.assertEqual(self.plugin.tracker, "https://github.com/") | ||
self.assertEqual(self.plugin.repository, "https://github.com/") | ||
|
||
self.assertEqual( | ||
self.assertIn( | ||
'[email protected]', | ||
mail.outbox[0].recipients(), | ||
['[email protected]', '[email protected]'] | ||
) | ||
self.assertIn( | ||
'[email protected]', | ||
mail.outbox[0].recipients() | ||
) | ||
|
||
# Should use the new email | ||
|
@@ -145,9 +149,13 @@ def test_plugin_version_update(self): | |
self.assertEqual(self.plugin.tracker, "https://github.com/") | ||
self.assertEqual(self.plugin.repository, "https://github.com/") | ||
|
||
self.assertEqual( | ||
self.assertIn( | ||
'[email protected]', | ||
mail.outbox[0].recipients(), | ||
['[email protected]', '[email protected]'] | ||
) | ||
self.assertIn( | ||
'[email protected]', | ||
mail.outbox[0].recipients() | ||
) | ||
|
||
# Should use the new email | ||
|
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 |
---|---|---|
|
@@ -69,9 +69,13 @@ def test_plugin_upload_form(self): | |
3) | ||
self.assertTrue(PluginVersion.objects.filter(plugin__name='Test Plugin', version='0.0.1').exists()) | ||
|
||
self.assertEqual( | ||
self.assertIn( | ||
'[email protected]', | ||
mail.outbox[0].recipients(), | ||
['[email protected]', '[email protected]'] | ||
) | ||
self.assertIn( | ||
'[email protected]', | ||
mail.outbox[0].recipients() | ||
) | ||
|
||
# Should use the new email | ||
|
Binary file not shown.
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