Skip to content

Commit

Permalink
add test for include_numbers and min_word_length to test_wordcloud_cl…
Browse files Browse the repository at this point in the history
…i.py
  • Loading branch information
the-rccg committed Jan 31, 2019
1 parent 0613022 commit bc8d632
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
doc/_build
doc/auto_examples
doc/gen_modules
doc/generated
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig

### PyCharm ###
.idea/

# Created by https://www.gitignore.io/api/python
# Created by https://www.gitignore.io/api/python,visualstudiocode
# Edit at https://www.gitignore.io/?templates=python,visualstudiocode

### Python ###
# Byte-compiled / optimized / DLL files
Expand All @@ -31,6 +26,7 @@ parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -49,6 +45,7 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
Expand Down Expand Up @@ -83,6 +80,10 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

Expand Down Expand Up @@ -113,12 +114,27 @@ venv.bak/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

### Python Patch ###
.venv/

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# End of https://www.gitignore.io/api/python
### VisualStudioCode Patch ###
# Ignore all local history of files
.history

# End of https://www.gitignore.io/api/python,visualstudiocode

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

2 changes: 2 additions & 0 deletions test/test_wordcloud_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class PassFile(object):
ArgOption(cli_name='background', init_name='background_color', pass_value='grey', fail_value=None),
ArgOption(cli_name='contour_color', init_name='contour_color', pass_value='grey', fail_value=None),
ArgOption(cli_name='contour_width', init_name='contour_width', pass_value=0.5, fail_value='blue'),
ArgOption(cli_name='include_numbers', init_name='include_numbers', pass_value=True, fail_value=None),
ArgOption(cli_name='min_word_length', init_name='min_word_length', pass_value=5, fail_value='blue'),
]
ARGUMENT_CLI_NAMES_UNARY = [arg_opt.cli_name for arg_opt in ARGUMENT_SPEC_UNARY]

Expand Down

0 comments on commit bc8d632

Please sign in to comment.