We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e536bee commit 01a38deCopy full SHA for 01a38de
test/test_api.py
@@ -10,6 +10,22 @@
10
)
11
12
13
+def test_naive(client, engine, tsh):
14
+ series_in = genserie(pd.Timestamp('2018-1-1'), 'H', 3)
15
+ client.update('test', series_in, 'Babar',
16
+ insertion_date=utcdt(2019, 1, 1))
17
+ assert client.exists('test')
18
+
19
+ # now let's get it back
20
+ ts = client.get('test')
21
+ assert_df("""
22
+2018-01-01 00:00:00+00:00 0.0
23
+2018-01-01 01:00:00+00:00 1.0
24
+2018-01-01 02:00:00+00:00 2.0
25
+""", ts)
26
+ assert ts.index.dtype.tz.zone == 'UTC'
27
28
29
def test_base(client, engine, tsh):
30
assert repr(client) == "tshistory-http-client(uri='http://test-uri')"
31
0 commit comments