Skip to content

Commit

Permalink
Settings.py: Tests to increase branch coverage
Browse files Browse the repository at this point in the history
Modifying tests in SettingsTest.py file to increase branch coverage
of ``if ext in exts:`` in get_extensions function to 100%.

Closes coala#279
  • Loading branch information
abhaygupta97 committed Nov 14, 2018
1 parent 2d275a3 commit 0b65c33
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions .nocover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ nocover_regexes:
- def autofill_value
- def is_autofill_possible
- def require_setting
# generation/Settings.py::get_extensions
# https://github.com/coala/coala-quickstart/issues/279
- if ext in exts
# generation/SettingsClass.py::fillup_optional_settings
# https://github.com/coala/coala-quickstart/issues/280
- if inside_annot
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ exclude_lines =
def autofill_value
def is_autofill_possible
def require_setting
if ext in exts
if inside_annot
if hasattr.*generate_config
def is_glob_exp
Expand Down
2 changes: 1 addition & 1 deletion tests/generation/SettingsTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_allow_complete_section_mode_with_ignore_globs(self):

def test_allow_complete_section_mode(self):
project_dir = "/repo"
project_files = ['/repo/hello.html']
project_files = ['/repo/hello.html', '/repo/readme.txt']
ignore_globs = []

used_languages = list(get_used_languages(project_files))
Expand Down

0 comments on commit 0b65c33

Please sign in to comment.