def setUp(self): self.client = app.test_client() self.user = (User( email='*****@*****.**', username='******', allow_community=True).set_password('testtest').save()) self.lat_lng = [3.5, 42.0]
def setUp(self): provider = User(email='*****@*****.**').save() client = Client(provider=provider, lastname='Jack').save() self.token = SurveyToken(client=client, provider=provider, survey='tcims').save() self.client = app.test_client() self.client.testing = True
def client(request): test_client = app.test_client() def teardown(): pass # databases and resourses have to be freed at the end. But so far we don't have anything request.addfinalizer(teardown) return test_client
def setUp(self): self.client = app.test_client() self.user = User(email='*****@*****.**').set_password('testtest') self.user.allow_localization = True self.user.save() data = { 'email': '*****@*****.**', 'password': '******', } self.client.post('/login', data=data, follow_redirects=True) self.lat_lng = [3.5, 42.0]
def setUp(self): self.client = app.test_client() self.user = (User(email='*****@*****.**', username='******').set_password('testtest')) self.user.allow_community = True self.user.save() data = { 'email': '*****@*****.**', 'password': '******', } self.client.post('/login/', data=data, follow_redirects=True) self.lat_lng = [3.5, 42.0]
def setUp(self): self.data = {'email': '*****@*****.**', 'password': '******'} self.client = app.test_client() self.user = (User(email=self.data['email'], username='******').set_password( self.data['password']).save())
def __init__(self, *args, **kwargs): super(HubytTests, self).__init__(*args, **kwargs) self.client = app.test_client()
def setUp(self): self.client = app.test_client() self.user = User( email='*****@*****.**').set_password('testtest').save()
def setUp(self): self.client = app.test_client() self.user = User(email='*****@*****.**').set_password('testtest') self.user.allow_localization = True self.user.save() self.lat_lng = [3.5, 42.0]