From 137a61df7196c50d2ae1ae3bb878aedd1555efdd Mon Sep 17 00:00:00 2001 From: B Jin Date: Wed, 2 Aug 2017 17:27:52 +0100 Subject: [PATCH] Update CHANGES.md and fixtures tests --- CHANGES.md | 3 ++- arctic/store/metadata_store.py | 1 - tests/integration/fixtures/test_arctic.py | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a1a06918637dd..52bcabb13abd6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,7 @@ ## Changelog -### 1.49 +### 1.49 (2017-08-02) + * Feature: #392 MetadataStore * Bugfix: #384 sentinels missing time data on chunk start/ends in ChunkStore * Bugfix: #382 Remove dependency on cython being pre-installed * Bugfix: #343 Renaming libraries/collections within a namespace/database diff --git a/arctic/store/metadata_store.py b/arctic/store/metadata_store.py index bf254ba2c54b3..05c17f56f7485 100644 --- a/arctic/store/metadata_store.py +++ b/arctic/store/metadata_store.py @@ -91,7 +91,6 @@ def read(self, symbol): res = self.find_one({'symbol': symbol}, sort=[('start_time', pymongo.DESCENDING)]) return res['metadata'] if res is not None else None - def write_history(self, collection): """ Manually overwrite entire metadata history for symbols in `collection` diff --git a/tests/integration/fixtures/test_arctic.py b/tests/integration/fixtures/test_arctic.py index c3d7657c86737..77fb36f08786d 100644 --- a/tests/integration/fixtures/test_arctic.py +++ b/tests/integration/fixtures/test_arctic.py @@ -1,5 +1,6 @@ from arctic.arctic import Arctic from arctic.store.version_store import VersionStore +from arctic.store.metadata_store import MetadataStore def test_arctic(arctic): @@ -8,3 +9,9 @@ def test_arctic(arctic): def test_library(library): assert isinstance(library, VersionStore) + assert library._arctic_lib.get_library_type() == 'VersionStore' + + +def test_ms_lib(ms_lib): + assert isinstance(ms_lib, MetadataStore) + assert ms_lib._arctic_lib.get_library_type() == 'MetadataStore'