Skip to content

Commit

Permalink
fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegorubin committed Dec 10, 2015
1 parent 5309410 commit 089acef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_spellchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@

class TestSpellchecker(unittest.TestCase):
def setUp(self):
word = Word('abacaxi', 'SYSTEM-TEST')
word.save()

self.spellchecker = Spellchecker('pt_BR.list')
word = Word('abacaxi', 'TEST')

def test_correct(self):
self.assertEqual('abacaxi', self.spellchecker.correct('abacahi'))
Expand Down
4 changes: 4 additions & 0 deletions tests/test_word_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
from spellchecker import word_list

class TestWord(unittest.TestCase):
def setUp(self):
word = Word('cachorro', 'SYSTEM-TEST')
word.save()

def test_save_word(self):
word = Word('cachorro', 'SYSTEM-TEST')
self.assertEqual(True, word.save())
Expand Down

0 comments on commit 089acef

Please sign in to comment.