mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Fix underscore method test
This commit is contained in:
parent
c6ae49e8bf
commit
51519251c2
|
@ -46,7 +46,7 @@ def test_span_underscore_getter_setter():
|
|||
|
||||
|
||||
def test_token_underscore_method():
|
||||
token = Mock(doc=Mock(), idx=7, say_cheese=lambda: 'cheese')
|
||||
token = Mock(doc=Mock(), idx=7, say_cheese=lambda token: 'cheese')
|
||||
Underscore.token_extensions['hello'] = (None, token.say_cheese,
|
||||
None, None)
|
||||
token._ = Underscore(Underscore.token_extensions, token, start=token.idx)
|
||||
|
|
Loading…
Reference in New Issue
Block a user