Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.target = apiritif.http.target('http://localhost:8000/')
self.target.keep_alive(True)
self.target.auto_assert_ok(True)
self.target.use_cookies(True)
self.target.allow_redirects(True)
self.vars = {
'cn': 'cv'
}
reader_1.read_vars()
reader_2.read_vars()
self.vars.update(reader_1.get_vars())
self.vars.update(reader_2.get_vars())
apiritif.put_into_thread_store(func_mode=False)
def setUp(self):
self.target = apiritif.http.target('https://jsonplaceholder.typicode.com')
self.target.keep_alive(True)
self.target.auto_assert_ok(True)
self.target.use_cookies(True)
self.target.allow_redirects(True)
self.target.timeout(5.0)
self.vars = {
}
apiritif.put_into_thread_store(func_mode=False)
def setUp(self):
self.target = apiritif.http.target('http://localhost:8000/')
self.target.keep_alive(True)
self.target.auto_assert_ok(True)
self.target.use_cookies(True)
self.target.allow_redirects(True)
self.vars = {
'an': 'av',
}
apiritif.put_into_thread_store(func_mode=False)