Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_session_odoo_save_and_remove(self):
self.odoo.save(self.session_name, rc_file=self.file_path)
result = odoorpc.ODOO.list(rc_file=self.file_path)
self.assertIn(self.session_name, result)
odoorpc.ODOO.remove(self.session_name, rc_file=self.file_path)
def test_session_odoo_save_and_remove(self):
self.odoo.save(self.session_name, rc_file=self.file_path)
result = odoorpc.ODOO.list(rc_file=self.file_path)
self.assertIn(self.session_name, result)
odoorpc.ODOO.remove(self.session_name, rc_file=self.file_path)
def test_session_odoo_list(self):
result = odoorpc.ODOO.list(rc_file=self.file_path)
self.assertIsInstance(result, list)
other_file_path = tempfile.mkstemp()[1]
result = odoorpc.ODOO.list(rc_file=other_file_path)
self.assertIsInstance(result, list)
def test_session_odoo_list(self):
result = odoorpc.ODOO.list(rc_file=self.file_path)
self.assertIsInstance(result, list)
other_file_path = tempfile.mkstemp()[1]
result = odoorpc.ODOO.list(rc_file=other_file_path)
self.assertIsInstance(result, list)