Skip to content

Commit 02f2402

Browse files
committed
Settings.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 #279
1 parent 5c26e67 commit 02f2402

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

setup.cfg

Lines changed: 0 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_write_info(self):
5151

5252
def test_allow_complete_section_mode_with_ignore_globs(self):
5353
project_dir = "/repo"
54-
project_files = ['/repo/hello.html']
54+
project_files = ['/repo/hello.html', '/repo/readme.txt']
5555
ignore_globs = ["/repo/style.css"]
5656
used_languages = list(get_used_languages(project_files))
5757
relevant_bears = filter_relevant_bears(

0 commit comments

Comments
 (0)