Skip to content

Commit

Permalink
Using part of speech "tag" in system test. (googleapis#3471)
Browse files Browse the repository at this point in the history
Token.part_of_speech is now a PartOfSpeech rather than a string
scalar. (This test breakage was accidentally introduced in
  • Loading branch information
dhermes authored and landrito committed Aug 21, 2017
1 parent 8ffc438 commit 117677d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _verify_token(self, token, text_content, part_of_speech, lemma):

self.assertIsInstance(token, Token)
self.assertEqual(token.text_content, text_content)
self.assertEqual(token.part_of_speech, part_of_speech)
self.assertEqual(token.part_of_speech.tag, part_of_speech)
self.assertEqual(token.lemma, lemma)

def _check_analyze_syntax_result(self, tokens):
Expand Down

0 comments on commit 117677d

Please sign in to comment.