graphql-engine/server/tests-py
Rakesh Emmadi 91376316f2 breaking: encode bigint and bigserial postgres types as strings in response (fix #633) (#640)
This is breaking change where bigint and bigserial Postgres types will be encoded as GraphQL String types, as opposed to Int as present in earlier releases.

Input types were already encoded as String.

This is achieved by selecting `bigint` and `bigserial` columns as `text`s in the SQL query: `select "big_id"::text ..` instead of `select "big_id" .. `.

Reason for that change is outlined in #633 where JavaScript cannot decode 64 bit Integers.
2018-10-05 10:46:21 +05:30
..
queries breaking: encode bigint and bigserial postgres types as strings in response (fix #633) (#640) 2018-10-05 10:46:21 +05:30
.gitignore python based tests (#387) 2018-09-18 11:51:57 +05:30
conftest.py add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
context.py add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
README.md python based tests (#387) 2018-09-18 11:51:57 +05:30
requirements.txt python based tests (#387) 2018-09-18 11:51:57 +05:30
test_events.py add custom headers for webhooks, refactor retry logic (#419) 2018-09-24 17:20:11 +05:30
test_graphql_introspection.py dont set non-null constraint for manual object relationships (close #462) 2018-09-18 17:01:16 +05:30
test_graphql_mutations.py add python based tests, remove haskell tests 2018-10-04 18:14:15 +05:30
test_graphql_queries.py breaking: encode bigint and bigserial postgres types as strings in response (fix #633) (#640) 2018-10-05 10:46:21 +05:30
test_subscriptions.py live queries tests for subscription (#487) 2018-09-20 07:16:03 +05:30
test_v1_queries.py breaking: encode bigint and bigserial postgres types as strings in response (fix #633) (#640) 2018-10-05 10:46:21 +05:30
test_version.py python based tests (#387) 2018-09-18 11:51:57 +05:30
validate.py add custom headers for webhooks, refactor retry logic (#419) 2018-09-24 17:20:11 +05:30

pip install -r requirements.txt
pytest -vv --hge-url="http://127.0.0.1:8080" --pg-url="postgresql://admin@127.0.0.1:5432/hge_tests"