Skip to content

Commit e33c659

Browse files
committed
SettingsTest.py: Tests to increase branch coverage
Modifying tests in SettingsTest.py file to increase branch coverage of ``if ext in exts:`` in get_extensions function to 100%. Closes coala#279
1 parent 2d275a3 commit e33c659

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

.nocover.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ nocover_regexes:
3232
- def autofill_value
3333
- def is_autofill_possible
3434
- def require_setting
35-
# generation/Settings.py::get_extensions
36-
# https://github.com/coala/coala-quickstart/issues/279
37-
- if ext in exts
3835
# generation/SettingsClass.py::fillup_optional_settings
3936
# https://github.com/coala/coala-quickstart/issues/280
4037
- if inside_annot

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ exclude_lines =
8484
def autofill_value
8585
def is_autofill_possible
8686
def require_setting
87-
if ext in exts
8887
if inside_annot
8988
if hasattr.*generate_config
9089
def is_glob_exp

tests/generation/SettingsTest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_allow_complete_section_mode_with_ignore_globs(self):
7777

7878
def test_allow_complete_section_mode(self):
7979
project_dir = "/repo"
80-
project_files = ['/repo/hello.html']
80+
project_files = ['/repo/hello.html', '/repo/readme.txt']
8181
ignore_globs = []
8282

8383
used_languages = list(get_used_languages(project_files))

0 commit comments

Comments
 (0)