graphql-engine/server/tests-py/test_version.py

13 lines
289 B
Python
Raw Normal View History

2018-09-18 09:21:57 +03:00
#!/usr/bin/env python3
import pytest
class TestServerVersion(object):
def test_version(self, hge_ctx):
resp = hge_ctx.http.get(
hge_ctx.hge_url + '/v1/version'
)
my_json = resp.json()
assert my_json['version'] == hge_ctx.version, my_json