Thread: More idiomatic python3 + fix some tests
Hello,
patch 1 to 6 generated mostly using 2to3:
patch 7 fixes change_password tests:
Less that min length : min is 8 instead of 6
Valid password : use an user different than admin user / mock mail module
patch 8 fixes ConstraintDeleteMultipleTestCase on py3.10 (using simplejson like in all other modules).
Regards,
Cyril
Attachment
- 0001-Replaces-deprecated-unittest-method-names-with-the-c.patch
- 0002-Wraps-filter-usage-in-a-list-call.patch
- 0003-several-transformations-that-make-Python-code-more-i.patch
- 0004-Converts-the-old-metaclass-syntax-to-the-new.patch
- 0005-Renames-xrange-to-range.patch
- 0006-Renames-unicode-to-str.patch
- 0007-fix-change_password-tests.patch
- 0008-use-simplejson-instead-of-plain-json-compat-py3.10.patch
Hi Cyril
Thanks, patch applied. Please make sure to run "yarn run pep8" before sending the patch.
On Sat, Aug 29, 2020 at 2:28 AM Cyril Jouve <jv.cyril@gmail.com> wrote:
Hello,patch 1 to 6 generated mostly using 2to3:patch 7 fixes change_password tests:Less that min length : min is 8 instead of 6Valid password : use an user different than admin user / mock mail modulepatch 8 fixes ConstraintDeleteMultipleTestCase on py3.10 (using simplejson like in all other modules).Regards,Cyril
--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Sr. Software Architect
EDB PostgresMobile: +91 976-788-8246
thanks :)
and sure, I'll run the linter next time!
have you thought of automatic code formatters instead like yapf or black?
Le lun. 31 août 2020 à 13:18, Akshay Joshi <akshay.joshi@enterprisedb.com> a écrit :
Hi CyrilThanks, patch applied. Please make sure to run "yarn run pep8" before sending the patch.On Sat, Aug 29, 2020 at 2:28 AM Cyril Jouve <jv.cyril@gmail.com> wrote:Hello,patch 1 to 6 generated mostly using 2to3:patch 7 fixes change_password tests:Less that min length : min is 8 instead of 6Valid password : use an user different than admin user / mock mail modulepatch 8 fixes ConstraintDeleteMultipleTestCase on py3.10 (using simplejson like in all other modules).Regards,Cyril
--Thanks & RegardsAkshay JoshipgAdmin Hacker | Sr. Software ArchitectEDB PostgresMobile: +91 976-788-8246
Hi,
On Tue, Sep 1, 2020 at 2:36 PM Cyril Jouve <jv.cyril@gmail.com> wrote:
thanks :)and sure, I'll run the linter next time!have you thought of automatic code formatters instead like yapf or black?
AFAIK, yapf is not consistent with formatting & black is non-configurable.
I tried both sometime back and not found useful at that time but we can give it a shot with the new release.
-- Murtuza
Le lun. 31 août 2020 à 13:18, Akshay Joshi <akshay.joshi@enterprisedb.com> a écrit :Hi CyrilThanks, patch applied. Please make sure to run "yarn run pep8" before sending the patch.On Sat, Aug 29, 2020 at 2:28 AM Cyril Jouve <jv.cyril@gmail.com> wrote:Hello,patch 1 to 6 generated mostly using 2to3:patch 7 fixes change_password tests:Less that min length : min is 8 instead of 6Valid password : use an user different than admin user / mock mail modulepatch 8 fixes ConstraintDeleteMultipleTestCase on py3.10 (using simplejson like in all other modules).Regards,Cyril
--Thanks & RegardsAkshay JoshipgAdmin Hacker | Sr. Software ArchitectEDB PostgresMobile: +91 976-788-8246