diff --git a/trackers_integration/tests/test_internals.py b/trackers_integration/tests/test_internals.py index ad7f440..a72fc4e 100644 --- a/trackers_integration/tests/test_internals.py +++ b/trackers_integration/tests/test_internals.py @@ -85,6 +85,41 @@ def test_adding_a_token_updates_the_owner_field_to_the_current_user(self): self.assertEqual(token.base_url, "http://open-project.example.com") self.assertEqual(token.api_username, "kiwitcms-bot") + def test_add_view_shows_dropdown_select_of_existing_bug_trackers(self): + response = self.client.get(reverse("admin:trackers_integration_apitoken_add")) + # warning: can't assert on the select tag b/c order of its attribute change + # but html=True expects a closed