Пример #1
0
 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]
Пример #2
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
Пример #3
0
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
Пример #4
0
 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]
Пример #5
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]
Пример #6
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())
Пример #7
0
 def __init__(self, *args, **kwargs):
     super(HubytTests, self).__init__(*args, **kwargs)
     self.client = app.test_client()
Пример #8
0
 def setUp(self):
     self.client = app.test_client()
     self.user = User(
         email='*****@*****.**').set_password('testtest').save()
Пример #9
0
 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]