Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tonial committed Sep 3, 2024
1 parent a5d2e07 commit 16999ee
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tests/www/invitations_views/test_company_accept.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,20 @@ def test_accept_new_user_to_inactive_siae(self):
next_url=next_url,
)
# Follow the redirection.
response = self.client.get(response.url, follow=True)
# respose.url = /invitations/uuid/join-company
response = self.client.get(response.url)
# respose.url = /welcoming_tour/index'
response = self.client.get(response.url)
# respose.url = /accounts/logout/?forced=True
response = self.client.get(response.url)
# respose.url = /inclusion_connect/logout?token=123456'
response = self.client.get(response.url)
# respose.url = 'https://inclusion.connect.fake/auth/logout/?id_token_hint=123456&post_logout_redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fsearch%2Femployers'
# How to I mock the service ?
response = self.client.get(response.url)
# respose.url should be http://localhost/search/employers
response = self.client.get(response.url)
assert response.status_code == 200
self.assertContains(response, escape("Cette structure n'est plus active."))
user = User.objects.get(email=invitation.email)
assert user.company_set.count() == 0
Expand Down

0 comments on commit 16999ee

Please sign in to comment.