Commit db4c3e42 authored by Alain Takoudjou's avatar Alain Takoudjou

fixes for tests

parent 3456e13e
...@@ -59,7 +59,7 @@ class TestGitlab(SlapOSInstanceTestCase): ...@@ -59,7 +59,7 @@ class TestGitlab(SlapOSInstanceTestCase):
session = requests.session() session = requests.session()
# Load the login page to get a CSRF token. # Load the login page to get a CSRF token.
response = session.get(urljoin(self.backend_url, 'users/sign_in')) response = session.get(urljoin(self.backend_url, 'users/sign_in'), verify=False)
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
# Extract the CSRF token and param. # Extract the CSRF token and param.
...@@ -73,7 +73,7 @@ class TestGitlab(SlapOSInstanceTestCase): ...@@ -73,7 +73,7 @@ class TestGitlab(SlapOSInstanceTestCase):
csrf_param: csrf_token} csrf_param: csrf_token}
sign_in = functools.partial( sign_in = functools.partial(
requests.post, session.post,
response.url, response.url,
data=request_data, data=request_data,
verify=False) verify=False)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment