Private
Public Access
1
0

testing team-create

This commit is contained in:
Sander Roosendaal
2019-02-05 18:17:58 +01:00
parent 966b9e8ba1
commit ca6e7746b7
3 changed files with 38 additions and 8 deletions

View File

@@ -262,10 +262,11 @@ class URLTests(TestCase):
self.assertTrue(login)
response = self.c.get(url,follow=True)
if response.status_code != expected:
print url
print response.status_code
print(url )
print(response.status_code)
self.assertEqual(response.status_code,
expected)
expected)
html = BeautifulSoup(response.content,'html.parser')
urls = [a['href'] for a in html.find_all('a')]
@@ -274,10 +275,10 @@ class URLTests(TestCase):
if u not in tested and 'rowers' in u and 'http' not in u and 'authorize' not in u and 'import' not in u and 'logout' not in u:
response = self.c.get(u)
if response.status_code not in [200,302]:
print len(tested)
print url
print u
print response.status_code
print(len(tested))
print(url)
print(u)
print(response.status_code)
tested.append(u)
self.assertIn(response.status_code,
[200,302])