Skip to content

Commit

Permalink
Blackify and ignore mozilla tests
Browse files Browse the repository at this point in the history
Signed-off-by: Hritik Vijay <[email protected]>
  • Loading branch information
Hritik14 committed Feb 8, 2022
1 parent e355706 commit 62a2789
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ addopts =
--ignore=vulnerabilities/importers/suse_backports.py
--ignore=vulnerabilities/importers/suse_scores.py
--ignore=vulnerabilities/importers/ubuntu_usn.py
--ignore=vulnerabilities/importers/mozilla.py
--ignore=vulnerabilities/management/commands/create_cpe_to_purl_map.py
--ignore=vulnerabilities/lib_oval.py
2 changes: 1 addition & 1 deletion vulnerabilities/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def fetch_yaml(url):
create_etag = MagicMock()



def split_markdown_front_matter(lines: str) -> Tuple[str, str]:
"""
This function splits lines into markdown front matter and the markdown body
Expand Down Expand Up @@ -107,6 +106,7 @@ def split_markdown_front_matter(lines: str) -> Tuple[str, str]:

return "\n".join(fmlines), "\n".join(mdlines)


def contains_alpha(string):
"""
Return True if the input 'string' contains any alphabet
Expand Down
1 change: 1 addition & 0 deletions vulnerabilities/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ def no_rmtree(monkeypatch):
"test_importer_yielder.py",
"test_upstream.py",
"test_istio.py",
"test_mozilla.py",
]

0 comments on commit 62a2789

Please sign in to comment.