From c07d61ba124eade7a5ffad03f6ad71f5c33c26c8 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Sat, 26 Mar 2022 14:55:16 +0100 Subject: [PATCH] Modified test options strict=true and cover=100 --- .github/workflows/python-app.yml | 2 +- tests/modules/test_preparser.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 80c4265..b5be740 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -39,4 +39,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest . + pytest --cov-fail-under=100 -o xfail_strict=true . diff --git a/tests/modules/test_preparser.py b/tests/modules/test_preparser.py index e83df25..e2b23c2 100644 --- a/tests/modules/test_preparser.py +++ b/tests/modules/test_preparser.py @@ -233,7 +233,6 @@ def test_do_replacements(): assert f.read() == final_content_index -@pytest.mark.xfail(reason="Not implemented") def test_get_all_lines(): """ Test the line reader @@ -318,7 +317,6 @@ def test_get_shortcut_from_config(): assert pp.get_image_from_config("any_picture", None) == '' -@pytest.mark.xfail(reason="Not implemented") def test_replace(): replace_file = temp_name("test_preparse.bpr") make_new_file(replace_file, get_from_config)