Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
word_cloud_est
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
keeleliin
word_cloud_est
Commits
1eaa368e
Commit
1eaa368e
authored
Oct 21, 2016
by
Andreas Mueller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add simple smoke tests for the no-collocations path
parent
096b703f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
test/test_wordcloud.py
test/test_wordcloud.py
+10
-5
No files found.
test/test_wordcloud.py
View file @
1eaa368e
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment