Skip to content

Commit d20200f

Browse files
committed
Merge pull request pandas-dev#74 from femtotrader/fix49_str_tick_lib
Add import indent
2 parents c3a3a96 + 7a158be commit d20200f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

arctic/tickstore/tickstore.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from ..date import DateRange, to_pandas_closed_closed, mktz, datetime_to_ms, CLOSED_CLOSED, to_dt
1313
from ..decorators import mongo_retry
1414
from ..exceptions import OverlappingDataException, NoDataFoundException, UnhandledDtypeException, ArcticException
15+
from .._util import indent
1516

1617
logger = logging.getLogger(__name__)
1718

tests/integration/test_arctic.py

+6
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,9 @@ 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'])

0 commit comments

Comments
 (0)