summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2017-11-07 10:31:51 +0100
committerYannick Tivisse <yti@odoo.com>2017-11-07 11:43:46 +0100
commit5b8e4a370ea807df61426e6418ed959891681dff (patch)
tree7d2eb8b6555416cc3d2dd12a226649ff1b5bf87a
parenta824b9121fba66342dd7061ae88c4a1cb8f0bb8f (diff)
[IMP] hr_recruitment_survey: Convert yml test into python
-rw-r--r--addons/hr_recruitment_survey/__manifest__.py1
-rw-r--r--addons/hr_recruitment_survey/test/recruitment_process.yml5
-rw-r--r--addons/hr_recruitment_survey/tests/__init__.py4
-rw-r--r--addons/hr_recruitment_survey/tests/test_print_survey.py12
4 files changed, 16 insertions, 6 deletions
diff --git a/addons/hr_recruitment_survey/__manifest__.py b/addons/hr_recruitment_survey/__manifest__.py
index 2b6c9c13939..2daac345dd4 100644
--- a/addons/hr_recruitment_survey/__manifest__.py
+++ b/addons/hr_recruitment_survey/__manifest__.py
@@ -21,6 +21,5 @@
'demo': [
'data/hr_job_demo.xml',
],
- 'test': ['test/recruitment_process.yml'],
'auto_install': False,
}
diff --git a/addons/hr_recruitment_survey/test/recruitment_process.yml b/addons/hr_recruitment_survey/test/recruitment_process.yml
deleted file mode 100644
index 48a445d815c..00000000000
--- a/addons/hr_recruitment_survey/test/recruitment_process.yml
+++ /dev/null
@@ -1,5 +0,0 @@
--
- I print Applicant fill up the interview question
--
- !python {model: hr.applicant, id: hr_recruitment.hr_case_programmer}: |
- self.action_print_survey()
diff --git a/addons/hr_recruitment_survey/tests/__init__.py b/addons/hr_recruitment_survey/tests/__init__.py
new file mode 100644
index 00000000000..d7aadb8982e
--- /dev/null
+++ b/addons/hr_recruitment_survey/tests/__init__.py
@@ -0,0 +1,4 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from . import test_print_survey
diff --git a/addons/hr_recruitment_survey/tests/test_print_survey.py b/addons/hr_recruitment_survey/tests/test_print_survey.py
new file mode 100644
index 00000000000..816f7be7116
--- /dev/null
+++ b/addons/hr_recruitment_survey/tests/test_print_survey.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from odoo.tests import common
+
+
+class TestDeferredRevenue(common.TransactionCase):
+
+ def test_print_survey(self):
+ '''I print the survey to fill up the interview question'''
+
+ self.env.ref('hr_recruitment.hr_case_programmer').action_print_survey()