diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-03-30 06:49:43 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-03-31 07:33:50 +0000 |
| commit | 549968bdfe3ce0d31cc53c1ff6f1444bf45812a1 (patch) | |
| tree | 46360570917b97bf69a46b10ee4a3241c5f23142 /addons/website_slides_survey | |
| parent | b105240252c8e7349c7d381b79571d2436f68c15 (diff) | |
[IMP] survey: perform a quick linting in tests
Notably
* have tools and helpers in a SurveyCase and let SurveyCommon bet the
one with data;
* remove unnecessary with_user, replaced by standard one;
* move all tools in SurveyCase to help reusing them;
Diffstat (limited to 'addons/website_slides_survey')
| -rw-r--r-- | addons/website_slides_survey/tests/test_course_certification_failure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides_survey/tests/test_course_certification_failure.py b/addons/website_slides_survey/tests/test_course_certification_failure.py index f8c6a4011cd..8b206faefb8 100644 --- a/addons/website_slides_survey/tests/test_course_certification_failure.py +++ b/addons/website_slides_survey/tests/test_course_certification_failure.py @@ -8,7 +8,7 @@ class TestCourseCertificationFailureFlow(TestSurveyCommon): def test_course_certification_failure_flow(self): # Step 1: create a simple certification # -------------------------------------------------- - with self.with_user(self.survey_user): + with self.with_user('survey_user'): certification = self.env['survey.survey'].create({ 'title': 'Small course certification', 'access_mode': 'public', |
