Skip to content

Find the holes before someone else does. A fast, 100% Rust vulnerability scanner: XSS, SQL injection, leaked secrets, dependency CVEs and AI agent setups.

Add a poetry.lock fixture to the dependency test (#88)

Prashantf5c9681b32ab
diff --git a/tests/fixtures/deps/EXPECTED b/tests/fixtures/deps/EXPECTED
index ee6586a..7c48d48 100644
--- a/tests/fixtures/deps/EXPECTED
+++ b/tests/fixtures/deps/EXPECTED
@@ -8,3 +8,4 @@ pnpm/pnpm-lock.yaml:29 dependency.known-vulnerability
uv/uv.lock:6 dependency.known-vulnerability
dart/pubspec.lock:24 dependency.known-vulnerability
yarn/yarn.lock:6 dependency.known-vulnerability
+py/poetry.lock:5 dependency.known-vulnerability
diff --git a/tests/fixtures/deps/py/poetry.lock b/tests/fixtures/deps/py/poetry.lock
new file mode 100644
index 0000000..f425b86
--- /dev/null
+++ b/tests/fixtures/deps/py/poetry.lock
@@ -0,0 +1,21 @@
+# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
+
+[[package]]
+name = "requests"
+version = "2.19.0"
+description = "Python HTTP for Humans."
+optional = false
+python-versions = "*"
+files = []
+
+[[package]]
+name = "idna"
+version = "3.7"
+description = "Internationalized Domain Names in Applications (IDNA)"
+optional = false
+python-versions = ">=3.5"
+files = []
+
+[metadata]
+lock-version = "2.0"
+python-versions = "^3.8"
diff --git a/tests/scan.rs b/tests/scan.rs
index 781e772..408e159 100644
--- a/tests/scan.rs
+++ b/tests/scan.rs
@@ -146,6 +146,6 @@ fn deps() {
include_tests: false,
};
// The web/yarn.lock fixture contains a `my-app@workspace:.` entry that must be
- // skipped (not counted as a dependency). The expected package count stays 22.
- check_with("deps", options, Some(22));
+ // skipped (not counted as a dependency). The expected package count stays 24.
+ check_with("deps", options, Some(24));
}