From 9095d3874a5272ae4033163e4785872772c7ee92 Mon Sep 17 00:00:00 2001 From: ZiyaZhang <199893125+ZiyaZhang@users.noreply.github.com> Date: Thu, 30 Jul 2026 20:45:12 -0700 Subject: [PATCH] test: file the committed-manifest case under the parser it exercises --- scripts/gen-third-party-notices.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/gen-third-party-notices.spec.ts b/scripts/gen-third-party-notices.spec.ts index 93d615b667..7600902bd5 100644 --- a/scripts/gen-third-party-notices.spec.ts +++ b/scripts/gen-third-party-notices.spec.ts @@ -92,13 +92,13 @@ describe('parsePythonRequirements', () => { expect(parsePythonRequirements('"pydantic>=2.12", "requests", "httpx[http2]", "tomli ; python_version < \'3.11\'", "hatchling >= 1.24.0"')) .toEqual(['pydantic', 'requests', 'httpx', 'tomli', 'hatchling']) }) - - it('reads the committed manifests', () => { - expect(parsePyprojectRequirements(readFileSync(resolve(root, 'python/sdk/pyproject.toml'), 'utf8'))).toContain('pydantic') - }) }) describe('parsePyprojectRequirements', () => { + it('reads the committed manifests', () => { + expect(parsePyprojectRequirements(readFileSync(resolve(root, 'python/sdk/pyproject.toml'), 'utf8'))).toContain('pydantic') + }) + it('locates requirement arrays by TOML table, so author-named groups are not missed', () => { expect(parsePyprojectRequirements([ '[build-system]',