diff --git a/hc/accounts/tests/test_project.py b/hc/accounts/tests/test_project.py index 55bfde9c..79ad0b5b 100644 --- a/hc/accounts/tests/test_project.py +++ b/hc/accounts/tests/test_project.py @@ -172,3 +172,12 @@ class ProjectTestCase(BaseTestCase): self.project.refresh_from_db() self.assertEqual(self.project.name, "Alpha Team") + + def test_it_shows_invite_suggestions(self): + p2 = Project.objects.create(owner=self.alice) + + self.client.login(username="alice@example.org", password="password") + + r = self.client.get("/projects/%s/settings/" % p2.code) + self.assertContains(r, "Add Users from Other Teams") + self.assertContains(r, "bob@example.org") diff --git a/templates/accounts/project.html b/templates/accounts/project.html index cd6010e4..835da63a 100644 --- a/templates/accounts/project.html +++ b/templates/accounts/project.html @@ -135,6 +135,7 @@ {% endif %} + {% with invite_suggestions=project.invite_suggestions %}
@@ -216,6 +213,7 @@ {% endif %} {% endif %}