Commit 1eaa368e authored by Andreas Mueller's avatar Andreas Mueller

add simple smoke tests for the no-collocations path

parent 096b703f
......@@ -31,6 +31,16 @@ Namespaces are one honking great idea -- let's do more of those!
"""
def test_collocations():
wc = WordCloud(collocations=False)
wc.generate(THIS)
wc2 = WordCloud(collocations=True)
wc2.generate(THIS)
assert_greater(len(wc2.words_), len(wc.words_))
def test_default():
# test that default word cloud creation and conversions work
wc = WordCloud(max_words=50)
......@@ -187,8 +197,3 @@ def test_generate_from_frequencies():
result = wc.generate_from_frequencies(items)
assert_true(isinstance(result, WordCloud))
def check_parameters():
# check that parameters are actually used
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment