From: | Victoria Henry <vhenry(at)pivotal(dot)io> |
---|---|
To: | Dave Page <dpage(at)pgadmin(dot)org> |
Cc: | Joao De Almeida Pereira <jdealmeidapereira(at)pivotal(dot)io>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Anthony Emengo <aemengo(at)pivotal(dot)io> |
Subject: | Re: [pgadmin4][patch] Use pytest test runner for unit tests |
Date: | 2018-06-12 14:41:42 |
Message-ID: | CANxYE3KnRLfGxVgj2+ePbjhgwmoLPXzk0XLskUj0cTABLo25Pg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
Hi Dave,
Attached are four different patches that should be applied in order.
Included is a fix for the failing test above.
Sincerely,
Victoria && Joao
On Mon, Jun 11, 2018 at 11:01 AM Dave Page <dpage(at)pgadmin(dot)org> wrote:
> Hi
>
> On Mon, Jun 4, 2018 at 3:26 PM, Joao De Almeida Pereira <
> jdealmeidapereira(at)pivotal(dot)io> wrote:
>
>> Known issues:
>>>>
>>>> - Python 2.7, the library we are using for assertions (Grappa) is
>>>> failing while trying to assert on strings. We created a PR to the library:
>>>> https://github.com/grappa-py/grappa/pull/43 as soon as this gets in
>>>> all the tests should pass
>>>>
>>>> Any guesses as to the ETA? Given that most of our dev, and our Windows
>>> and Mac packages both run on 2.7 at the moment, it's clear that this is a
>>> required fix before we can proceed.
>>>
>>
>> Attached you can find the patch that bumps grappa to version 0.1.9 that
>> support Python 2.7
>>
>
> I thought I had replied to this, but apparently not. My apologies...
>
> This does seem to fix the issues with Python 2.7. The remaining issues I
> saw are:
>
> - There are a handful of failures with PG 11, however that's not yet
> supported and Khushboo is working on it. It shouldn't hold up this patch -
> just mentioning for completeness.
>
> - I get the following failure (which is easily fixed in the config file,
> though that of course, shouldn't be necessary):
>
> E AssertionError: Oops! Something went wrong!
>
> E
>
> E The following assertion was not satisfied
>
> E subject "/Library/PostgreSQL/ ..." should be equal to
> "/Library/PostgreSQL/ ..."
>
> E
>
> E What we expected
>
> E a value that is equal to "/Library/PostgreSQL/ ..."
>
> E
>
> E What we got instead
>
> E an value of type "str" with data "/Library/PostgreSQL/ ..."
>
> E
>
> E Difference comparison
>
> E > - /Library/PostgreSQL/tablespaces/9.4
>
> E > + /Library/PostgreSQL/tablespaces/9.4/
>
> E > ? +
>
> E
>
> E Where
>
> E File
> "/Users/dpage/git/pgadmin4/web/pgadmin/browser/server_groups/servers/tablespaces/tests/test_tbspc_get.py",
> line 75, in test_tablespace_get
>
> Thanks.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
Attachment | Content-Type | Size |
---|---|---|
0002-Change-the-way-tests-are-launched.patch | application/octet-stream | 4.8 KB |
0001-Patch-0001-rebased-over-master.patch | application/octet-stream | 1.2 MB |
0004-Upgrade-grappa-to-support-python-2.7.patch | application/octet-stream | 411 bytes |
0003-Patch-0003-feature-tests.patch | application/octet-stream | 58.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Victoria Henry | 2018-06-12 15:36:35 | Re: [pgadmin4][Patch]: Test cases for the backup module |
Previous Message | Joao De Almeida Pereira | 2018-06-12 13:42:51 | Re: [pgadmin4][Patch]: Support for create multiple test classes in one test file |