Skip to content

Commit

Permalink
Ignore outdated tests
Browse files Browse the repository at this point in the history
Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
  • Loading branch information
Hritik14 committed Jan 23, 2022
1 parent b80e23c commit e3f2ec1
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 1 deletion.
31 changes: 30 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,33 @@
DJANGO_SETTINGS_MODULE = vulnerablecode.settings
markers =
webtest
addopts = --doctest-modules
addopts =
--doctest-modules
# Ignore the following doctests until these files are migrated to
# import-improve structure
--ignore=vulnerabilities/importers/alpine_linux.py
--ignore=vulnerabilities/importers/apache_httpd.py
--ignore=vulnerabilities/importers/apache_kafka.py
--ignore=vulnerabilities/importers/apache_tomcat.py
--ignore=vulnerabilities/importers/archlinux.py
--ignore=vulnerabilities/importers/debian.py
--ignore=vulnerabilities/importers/elixir_security.py
--ignore=vulnerabilities/importers/gentoo.py
--ignore=vulnerabilities/importers/github.py
--ignore=vulnerabilities/importers/istio.py
--ignore=vulnerabilities/importers/kaybee.py
--ignore=vulnerabilities/importers/npm.py
--ignore=vulnerabilities/importers/nvd.py
--ignore=vulnerabilities/importers/openssl.py
--ignore=vulnerabilities/importers/postgresql.py
--ignore=vulnerabilities/importers/project_kb_msr2019.py
--ignore=vulnerabilities/importers/redhat.py
--ignore=vulnerabilities/importers/retiredotnet.py
--ignore=vulnerabilities/importers/ruby.py
--ignore=vulnerabilities/importers/rust.py
--ignore=vulnerabilities/importers/safety_db.py
--ignore=vulnerabilities/importers/suse_backports.py
--ignore=vulnerabilities/importers/suse_scores.py
--ignore=vulnerabilities/importers/ubuntu_usn.py
--ignore=vulnerabilities/management/commands/create_cpe_to_purl_map.py
--ignore=vulnerabilities/lib_oval.py
43 changes: 43 additions & 0 deletions vulnerabilities/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,46 @@ def no_mkdir(monkeypatch):
@pytest.fixture
def no_rmtree(monkeypatch):
monkeypatch.delattr("shutil.rmtree")


# TODO: Ignore these tests for now but we need to migrate each one of them to the new struture.
# Step 1: Fix importer_yielder: https://github.com/nexB/vulnerablecode/issues/501
# Step 2: Run test for importer only if it is activated (pytestmark = pytest.mark.skipif(...))
# Step 3: Migrate all the tests
collect_ignore = [
"test_models.py",
"test_msr2019.py",
"test_alpine.py",
"test_nginx.py",
"test_apache_httpd.py",
"test_npm.py",
"test_apache_kafka.py",
"test_nvd.py",
"test_apache_tomcat.py",
"test_openssl.py",
"test_api.py",
"test_package_managers.py",
"test_archlinux.py",
"test_postgresql.py",
"test_redhat_importer.py",
"test_data_source.py",
"test_retiredotnet.py",
"test_debian.py",
"test_ruby.py",
"test_debian_oval.py",
"test_rust.py",
"test_elixir_security.py",
"test_safety_db.py",
"test_gentoo.py",
"test_suse.py",
"test_github.py",
"test_suse_backports.py",
"test_suse_scores.py",
"test_import_cmd.py",
"test_ubuntu.py",
"test_import_runner.py",
"test_ubuntu_usn.py",
"test_importer_yielder.py",
"test_upstream.py",
"test_istio.py",
]

0 comments on commit e3f2ec1

Please sign in to comment.