Private
Public Access
1
0

futureized tests

This commit is contained in:
Sander Roosendaal
2019-02-25 17:01:42 +01:00
parent 6665ba2fe8
commit e8f0f3e5bf
27 changed files with 188 additions and 60 deletions

View File

@@ -1,4 +1,9 @@
from statements import *
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .statements import *
nu = datetime.datetime.now()
@@ -138,9 +143,9 @@ class TeamTest(TestCase):
if '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 url
print u
print response.status_code
print(url)
print(u)
print(response.status_code)
self.assertIn(response.status_code,[200,302])
login = self.c.login(username=self.users[1].username,
@@ -157,9 +162,9 @@ class TeamTest(TestCase):
if '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 url
print u
print response.status_code
print(url)
print(u)
print(response.status_code)
self.assertIn(response.status_code,[200,302])
def test_teamsview_manager(self):
@@ -179,9 +184,9 @@ class TeamTest(TestCase):
if '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 url
print u
print response.status_code
print(url)
print(u)
print(response.status_code)
self.assertIn(response.status_code,[200,302])
def test_teamview_member_request(self):