Human Resources mailing list archives

hr@odoo-community.org

Avatar

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

by "Alexey Pelykh" <notifications@github.com> - 15/06/2021 14:20:15

@alexey-pelykh 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))

I'm not sure if that's the correct way, to include localization in testing. I'd refer this to other @OCA/human-resources-maintainers


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