Re: [pgadmin4][patch] Use pytest test runner for unit tests
От | Dave Page |
---|---|
Тема | Re: [pgadmin4][patch] Use pytest test runner for unit tests |
Дата | |
Msg-id | CA+OCxoy6=pT+Fe2qh11aPzZ-psBC1mTu=Rj-dqdUaV2tXy4NwA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [pgadmin4][patch] Use pytest test runner for unit tests (Joao De Almeida Pereira <jdealmeidapereira@pivotal.io>) |
Ответы |
Re: [pgadmin4][patch] Use pytest test runner for unit tests
|
Список | pgadmin-hackers |
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 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
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
В списке pgadmin-hackers по дате отправления: