Skip to content

Commit 206541f

Browse files
authored
Merge pull request pandas-dev#395 from manahl/MetadataStore
Update CHANGES.md and fixtures tests
2 parents aba157a + 137a61d commit 206541f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Changelog
22

3-
### 1.49
3+
### 1.49 (2017-08-02)
4+
* Feature: #392 MetadataStore
45
* Bugfix: #384 sentinels missing time data on chunk start/ends in ChunkStore
56
* Bugfix: #382 Remove dependency on cython being pre-installed
67
* Bugfix: #343 Renaming libraries/collections within a namespace/database

arctic/store/metadata_store.py

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def read(self, symbol):
9191
res = self.find_one({'symbol': symbol}, sort=[('start_time', pymongo.DESCENDING)])
9292
return res['metadata'] if res is not None else None
9393

94-
9594
def write_history(self, collection):
9695
"""
9796
Manually overwrite entire metadata history for symbols in `collection`

tests/integration/fixtures/test_arctic.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from arctic.arctic import Arctic
22
from arctic.store.version_store import VersionStore
3+
from arctic.store.metadata_store import MetadataStore
34

45

56
def test_arctic(arctic):
@@ -8,3 +9,9 @@ def test_arctic(arctic):
89

910
def test_library(library):
1011
assert isinstance(library, VersionStore)
12+
assert library._arctic_lib.get_library_type() == 'VersionStore'
13+
14+
15+
def test_ms_lib(ms_lib):
16+
assert isinstance(ms_lib, MetadataStore)
17+
assert ms_lib._arctic_lib.get_library_type() == 'MetadataStore'

0 commit comments

Comments
 (0)