Skip to content

Commit

Permalink
Make sure that test requirements are downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Mar 30, 2019
1 parent 2469e3c commit 63cd74f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/base_case.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
from unittest import TestCase, SkipTest
from chatterbot import ChatBot
from chatterbot import utils


class ChatBotTestCase(TestCase):

def setUp(self):

# Make sure that test requirements are downloaded
utils.download_nltk_stopwords()
utils.download_nltk_wordnet()
utils.download_nltk_averaged_perceptron_tagger()

self.chatbot = ChatBot('Test Bot', **self.get_kwargs())

def tearDown(self):
Expand Down

0 comments on commit 63cd74f

Please sign in to comment.