diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-11-21 15:27:40 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-12-05 15:21:28 +0000 |
| commit | 1e66894042a3920179f14f19b50b692845f3a004 (patch) | |
| tree | 8330ba699ada5672f85a5cc4683a9e503694965e /addons/website_slides_survey/tests | |
| parent | 7edeb24de91ade5e21ba7542d32e97f023ec0c1b (diff) | |
[REF] survey: on survey.survey, rename some fields to ease understanding
PURPOSE
As new features are about to land in survey, notably live interactions [1]
and new survey building [2] performing a pre cleaning is necessary. In this
PR we clean survey models by: removing unnecessary fields, cleaning some code
and finally renaming models.
SPECIFICATIONS: RENAME THANKS_YOU_MESSAGE ON SURVEY.SURVEY
On survey.survey, rename thanks_you_message to description_done
In this commit we rename thanks_you_message field. Indeed for certifications
or recruitment form, "thank you" is not really the unique content you
would get in a post-survey message. We therefore rename it to description_done
to better indicate its use.
SPECIFICATIONS: RENAME CERTIFICATE ON SURVEY.SURVEY
On survey.survey, rename certificate field to certification
All certification related fields on survey model begin with certification_ .
Only the boolean one telling if a survey is a certification or not is called
certificate. In order to ease grep and ordering it is renamed to certification.
SPECIFICATIONS: RENAME PASSING_SCORE ON SURVEY.SURVEY
on survey.survey, rename passing_score field to scoring_success_min
``passing_score`` field name is not really the best name we could find.
Renaming the field using a ``scoring_`` prefix allow to know this field
is linked to the scoring mechanism.
LINKS
[0] Related to Task ID 2061901 (survey models cleaning and preparation)
[1] Task ID 1972640 (live interactions)
[2] Task ID 2119587 (new frontend for building surveys)
PR #40765
Diffstat (limited to 'addons/website_slides_survey/tests')
| -rw-r--r-- | addons/website_slides_survey/tests/test_course_certification_failure.py | 4 |
1 files changed, 2 insertions, 2 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 d4c32c4d4fc..1876ff8f6ae 100644 --- a/addons/website_slides_survey/tests/test_course_certification_failure.py +++ b/addons/website_slides_survey/tests/test_course_certification_failure.py @@ -14,9 +14,9 @@ class TestCourseCertificationFailureFlow(TestSurveyCommon): 'access_mode': 'public', 'users_login_required': True, 'scoring_type': 'scoring_with_answers', - 'certificate': True, + 'certification': True, 'is_attempts_limited': True, - 'passing_score': 100.0, + 'scoring_success_min': 100.0, 'attempts_limit': 2, 'state': 'open', }) |
