test: adjust following change in tshistory

We also constrain the minimum tshistory version.
2 files changed, 2 insertions(+), 2 deletions(-)

M setup.py
M test/test_api.py
M setup.py +1 -1
@@ 16,7 16,7 @@ setup(name='tshistory_rest',
       packages=['tshistory_rest'],
       install_requires=[
           'flask-restx',
-          'tshistory',
+          'tshistory >= 0.12.2',
           'requests',
           'pytest_sa_pg',
           'webtest',

          
M test/test_api.py +1 -1
@@ 248,7 248,7 @@ 2018-01-01 02:00:00+00:00    2.0
         'name': 'test',
         'insertion_date': utcdt(2018, 1, 1, 0)
     })
-    assert res.json is None
+    assert res.json == {}
 
     # history
     res = client.get('/series/history?name=test')