mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 13:09:41 +02:00
Unit test tweaks (still needs work)
This commit is contained in:
parent
08583aea51
commit
3dbb8f0673
1 changed files with 2 additions and 4 deletions
|
@ -690,7 +690,7 @@ class TestPortfolio(WebTest):
|
||||||
UserPortfolioPermission.objects.get_or_create(
|
UserPortfolioPermission.objects.get_or_create(
|
||||||
user=self.user,
|
user=self.user,
|
||||||
portfolio=self.portfolio,
|
portfolio=self.portfolio,
|
||||||
role=UserPortfolioRoleChoices.ORGANIZATION_MEMBER,
|
roles=[UserPortfolioRoleChoices.ORGANIZATION_MEMBER],
|
||||||
additional_permissions=[
|
additional_permissions=[
|
||||||
UserPortfolioPermissionChoices.VIEW_PORTFOLIO,
|
UserPortfolioPermissionChoices.VIEW_PORTFOLIO,
|
||||||
],
|
],
|
||||||
|
@ -731,7 +731,7 @@ class TestPortfolio(WebTest):
|
||||||
|
|
||||||
# Verify that the user can access the members page
|
# Verify that the user can access the members page
|
||||||
# This will redirect the user to the members page.
|
# This will redirect the user to the members page.
|
||||||
response = self.app.get(reverse("members"), follow=True)
|
response = self.app.get(reverse("members"))
|
||||||
# Make sure the page loaded
|
# Make sure the page loaded
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
|
@ -761,8 +761,6 @@ class TestPortfolio(WebTest):
|
||||||
# Verify that the user can access the members page
|
# Verify that the user can access the members page
|
||||||
# This will redirect the user to the members page.
|
# This will redirect the user to the members page.
|
||||||
response = self.client.get(reverse("members"), follow=True)
|
response = self.client.get(reverse("members"), follow=True)
|
||||||
# Make sure the page loaded
|
|
||||||
self.assertEqual(response.status_code, 200)
|
|
||||||
|
|
||||||
self.assertContains(response, '<use xlink:href="/public/img/sprite.svg#settings"></use>')
|
self.assertContains(response, '<use xlink:href="/public/img/sprite.svg#settings"></use>')
|
||||||
self.assertContains(response, "Manage")
|
self.assertContains(response, "Manage")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue