Skip to content

Commit a50b5f3

Browse files
authored
test: mark jsonschema tests as xfail (#1441)
* Related to #1438 Due to occasional mistakes in the NVD data, the jsonschema tests are flaky and have been making our CI results less useful.
1 parent b87bad7 commit a50b5f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/pythonapp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ jobs:
288288
key: ${{ runner.os }}-cve-bin-tool-${{ steps.get-date.outputs.date }}
289289
- name: Install dependencies
290290
run: |
291-
python -m pip install --upgrade pip setuptools wheel
291+
python -m pip install --upgrade pip setuptools wheel
292292
pip install -r requirements.txt -r doc/requirements.txt
293293
- name: Test to check for CVEs for python requirements and HTML report dependencies
294294
run: |

test/test_json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class TestJSON:
3535
"year", list(range(2002, datetime.datetime.now().year + 1))
3636
)
3737
# NVD database started in 2002, so range then to now.
38+
@pytest.mark.xfail(reason="NVD data is sometimes imperfect", run=True)
3839
def test_json_validation(self, year):
3940
"""Validate latest nvd json file against their published schema"""
4041
# Open the latest nvd file on disk

0 commit comments

Comments
 (0)