diff --git a/.travis/consumer_db/mariadb.json b/.travis/consumer_db/mariadb.json index e08ad70174..fb5b3bc976 100644 --- a/.travis/consumer_db/mariadb.json +++ b/.travis/consumer_db/mariadb.json @@ -2,6 +2,7 @@ "db_host": "localhost", "db_name": "test_frappe_consumer", "db_password": "test_frappe", + "allow_tests": true, "db_type": "mariadb", "auto_email_id": "test@example.com", "mail_server": "smtp.example.com", diff --git a/.travis/consumer_db/postgres.json b/.travis/consumer_db/postgres.json index 5923f602ba..fed9fdfde2 100644 --- a/.travis/consumer_db/postgres.json +++ b/.travis/consumer_db/postgres.json @@ -3,6 +3,7 @@ "db_name": "test_frappe_consumer", "db_password": "test_frappe", "db_type": "postgres", + "allow_tests": true, "auto_email_id": "test@example.com", "mail_server": "smtp.example.com", "mail_login": "test@example.com", diff --git a/.travis/producer_db/mariadb.json b/.travis/producer_db/mariadb.json index 8860241d80..988282a554 100644 --- a/.travis/producer_db/mariadb.json +++ b/.travis/producer_db/mariadb.json @@ -2,6 +2,7 @@ "db_host": "localhost", "db_name": "test_frappe_producer", "db_password": "test_frappe", + "allow_tests": true, "db_type": "mariadb", "auto_email_id": "test@example.com", "mail_server": "smtp.example.com", diff --git a/.travis/producer_db/postgres.json b/.travis/producer_db/postgres.json index 4d846eee98..6426e99058 100644 --- a/.travis/producer_db/postgres.json +++ b/.travis/producer_db/postgres.json @@ -3,6 +3,7 @@ "db_name": "test_frappe_producer", "db_password": "test_frappe", "db_type": "postgres", + "allow_tests": true, "auto_email_id": "test@example.com", "mail_server": "smtp.example.com", "mail_login": "test@example.com", diff --git a/frappe/workflow/doctype/workflow/test_workflow.py b/frappe/workflow/doctype/workflow/test_workflow.py index 120afe36be..adcd98a85d 100644 --- a/frappe/workflow/doctype/workflow/test_workflow.py +++ b/frappe/workflow/doctype/workflow/test_workflow.py @@ -20,6 +20,7 @@ class TestWorkflow(unittest.TestCase): frappe.set_user('Administrator') def tearDown(self): + frappe.print_sql(False) self.workflow.db_set('is_active', 0) def test_default_condition(self): @@ -33,11 +34,10 @@ class TestWorkflow(unittest.TestCase): def test_approve(self, doc=None): '''test simple workflow''' + frappe.print_sql(True) todo = doc or self.test_default_condition() - frappe.print_sql(True) apply_workflow(todo, 'Approve') - frappe.print_sql(False) # default condition is set self.assertEqual(todo.workflow_state, 'Approved') self.assertEqual(todo.status, 'Closed')