graphql-engine/server/tests-py/test_version.py
2018-10-30 14:51:58 +05:30

14 lines
290 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