Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jan 7, 2016
1 parent b00ec54 commit ab2291e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def get(self, *args, **kwargs):
return {
'_source': {
'id': self.test_id
}
},
'_id': self.test_id
}

def search(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_base_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Doc(BaseDocument):
_doctype = 'test'
_index = 'test'
_fields = {"asdf": 1}
Doc._initialize_multi_fields = pass_func
Doc._initialize_defaults_fields = pass_func

doc = Doc()
with pytest.raises(AttributeError) as ex:
Expand Down

0 comments on commit ab2291e

Please sign in to comment.