Skip to content

Commit

Permalink
Fix test in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpirix committed May 23, 2024
1 parent dea3726 commit 0533ad5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
16 changes: 12 additions & 4 deletions qgis-app/plugins/tests/test_plugin_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions qgis-app/plugins/tests/test_plugin_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0533ad5

Please sign in to comment.