Skip to content

Commit

Permalink
chore(*.py): Fix KeyError: u'key', AssertionError. fixs #414 @0.25h #…
Browse files Browse the repository at this point in the history
…427 @0.25h
  • Loading branch information
みぞ@CrazyBeatCoder committed Sep 29, 2018
1 parent 2385579 commit fad8993
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_domain.py
Expand Up @@ -37,7 +37,7 @@ def tearDown(self):
self.testbed.deactivate()

def test_response_word_inner(self):
user = infra.load_user(u'TestId', u'シリトリ')
user = infra.load_user(u'TestId')

obj = domain.response_word_inner({
u'queryResult':
Expand Down
8 changes: 4 additions & 4 deletions tests/test_infra.py
Expand Up @@ -25,9 +25,9 @@

class TestInfra(unittest.TestCase):
def test_search_reading_from_dic(self):
assert infra.search_reading_from_dic(u'リンゴ') == u'リンゴ'
assert infra.search_reading_from_dic(u'りんご') == u'リンゴ'
assert infra.search_reading_from_dic(u'林檎') == u'リンゴ'
assert infra.search_reading_from_dic(u'リンゴ')[u'key'] == u'リンゴ'
assert infra.search_reading_from_dic(u'りんご')[u'key'] == u'リンゴ'
assert infra.search_reading_from_dic(u'林檎')[u'key'] == u'リンゴ'

def test_search_reading_from_dic_none_words(self):
assert infra.search_reading_from_dic(u'溝口') == u''
assert infra.search_reading_from_dic(u'溝口') == {}

0 comments on commit fad8993

Please sign in to comment.