-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add import indent #74
Conversation
Thanks! Will need a unit test too which exercises the broken code |
7ca11dc
to
776f656
Compare
It should be ok... Please tell me is something is missing |
You need to add a unit test for the broken code. The test should fail without your fix and pass with it. |
This is the case see |
# Fix GH issue 49 - str(tick library) fails in IPython | ||
store = Arctic(mongo_host=mongo_host) | ||
store.initialize_library('library_name', 'TickStoreV3') | ||
s = str(store['library_name']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assert 'arctic.library_name' in str(store['library_name'])
would be nicer
LGTM |
a9065fe
to
7a158be
Compare
added and commits squashed |
@@ -144,3 +144,9 @@ def test_default_mongo_retry_timout(): | |||
with pytest.raises(LibraryNotFoundException): | |||
Arctic('unresolved-host', serverSelectionTimeoutMS=0)['some.lib'] | |||
assert time.time() - now < 1. | |||
|
|||
def test_stringify_tickstore_library(mongo_host): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test should really live on a test file with the sae name as the module under test. test_tickstore.py
or similar...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry @jamesblackburn ... @AdrianTeng merged it ... do you want I move this test or will you do it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make it a unit test, too :)
Try to fix #49