graphql-engine/server/tests-py/test_version.py
2018-09-18 11:51:57 +05:30

13 lines
289 B
Python

#!/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