Exemple #1
0
 def setUp(self):
     self.app = create_app()
     self.endpoint = '/api/link/4'
     self.headers = {'Bearer': config('ACCESS_TOKEN')}
     self.data = {
         'url': 'http://www.vlk.cz',
         'switch_date': {
             'Year': 2022,
             'Month': 2,
             'Day': 17
         }
     }
Exemple #2
0
 def setUp(self):
     self.app = create_app()
     self.endpoint = '/api/links'
     self.headers = {'Bearer': config('ACCESS_TOKEN')}
     self.data = {
         'owner': '*****@*****.**',
         'owner_id': '1234567890',
         'endpoint': 'google',
         'url': 'https://google.com',
         'switch_date': {
             'Year': 2020,
             'Month': 6,
             'Day': 10
         }
     }
 def setUp(self):
     self.app = create_app()
     self.endpoint = '/api/link/5'
     self.headers = {'Bearer': config('ACCESS_TOKEN')}
 def setUp(self):
     self.app = create_app()
     self.endpoint = '/api/vlk'
     self.headers = {'Bearer': config('ACCESS_TOKEN')}
     self.url = 'http://www.vlk.cz'