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 4, 2018
1 parent 5c26e67 commit 1c7620d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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 @@ -51,7 +51,7 @@ def test_write_info(self):

def test_allow_complete_section_mode_with_ignore_globs(self):
project_dir = "/repo"
project_files = ['/repo/hello.html']
project_files = ['/repo/hello.html', '/repo/readme.txt']
ignore_globs = ["/repo/style.css"]
used_languages = list(get_used_languages(project_files))
relevant_bears = filter_relevant_bears(
Expand Down

0 comments on commit 1c7620d

Please sign in to comment.