Skip to content

Commit 7c694c1

Browse files
committed
Merge pull request pandas-dev#77 from manahl/move-test
Move test to correct place
2 parents d20200f + 7b27734 commit 7c694c1

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

tests/integration/test_arctic.py

-6
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,3 @@ def test_default_mongo_retry_timout():
144144
with pytest.raises(LibraryNotFoundException):
145145
Arctic('unresolved-host', serverSelectionTimeoutMS=0)['some.lib']
146146
assert time.time() - now < 1.
147-
148-
def test_stringify_tickstore_library(mongo_host):
149-
# Fix GH issue 49 - str(tick library) fails in IPython
150-
store = Arctic(mongo_host=mongo_host)
151-
store.initialize_library('library_name', 'TickStoreV3')
152-
assert 'arctic.library_name' in str(store['library_name'])

tests/unit/tickstore/test_tickstore.py

+7
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,10 @@ def test_mongo_date_range_query_asserts():
3636

3737
with pytest.raises(AssertionError):
3838
TickStore._mongo_date_range_query(self, 'sym', DateRange(None, dt(2014, 1, 1)))
39+
40+
41+
def test_strify_tickstore():
42+
# Fix GH issue 49 - str(tick library) fails in IPython
43+
self = create_autospec(TickStore)
44+
self._arctic_lib = sentinel.library
45+
assert 'sentinel.library' in TickStore.__str__(self)

0 commit comments

Comments
 (0)