Add some tests for hdf5

This commit is contained in:
Matthias
2020-07-24 19:37:37 +02:00
parent e26e658f99
commit 0a28818b46
4 changed files with 8 additions and 1 deletions

View File

@@ -707,6 +707,12 @@ def test_datahandler_trades_append(datahandler, testdatadir):
dh.trades_append('UNITTEST/ETH', [])
def test_hdf5datahandler_trades_get_pairs(testdatadir):
pairs = HDF5DataHandler.trades_get_pairs(testdatadir)
# Convert to set to avoid failures due to sorting
assert set(pairs) == {'XRP/ETH'}
def test_gethandlerclass():
cl = get_datahandlerclass('json')
assert cl == JsonDataHandler