Human Resources mailing list archives

hr@odoo-community.org

Avatar

Re: [OCA/hr] [IMP]: add unit in form selection widget (#1002)

by "Simon Maillard" <notifications@github.com> - 15/06/2021 14:48:29

@maisim commented on this pull request.


In hr_holidays_credit/tests/test_hr_holidays_credit.py:

> @@ -148,7 +148,8 @@ def test_6(self):
         name = leave_type.with_context(
             employee_id=employee.id,
         ).name_get()[0][1]
-        self.assertTrue('available + credit' in name)
+        self.assertIn('available', name, '%s not found in %s' % ('available', name))

The goal is not to test localization, it was to undesrtand why test failed has I had no tested values in logs


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.