GitNexus/gitnexus/test/unit/scope-resolution/python
Gergő Magyar 1f2804e52f
fix(python): link field readers and qualify incomplete results (#3795)
* fix(python): track attribute accesses

Index constructor fields in both structure and class scope. Report known cross-language omissions consistently in context and upstream impact.

Fixes #3794

* refactor(python): share field classification rules

* fix(python): ignore replaced constructors

* fix(python): extract fields from binding targets

* fix: preserve Python field evidence (#3795)

* ci: fix Windows launch and Python baselines

Launch Vitest directly through Node so the native test subset avoids
cmd.exe's command-length limit and preserves argument boundaries.
Cover long lists, shell metacharacters, and child failures.

Refresh the Python capture fingerprint for attribute reads and constructor
fields. Receiver read drops increase from 31 to 34: two Path.parent reads
and admin.site.urls in existing Django fixtures. Call drops remain 141;
receiver-shape states and scaling budgets stay unchanged.

Validation: 425 tests, typecheck, lint, and all three benchmark checks pass.
Refs #3795

* test: disambiguate Python field cases

Vitest truncates interpolated case names, making distinct import and pattern cases collide in the execution audit. Include the case index so each receipt has a unique identity.

Validation: 420 tests passed. Reconciled all 31,481 CI test receipts after replacing the affected suite with its fresh result.

---------

Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
2026-11-01 14:01:35 +00:00
..
cached-tree-parity.test.ts feat(python): scope-based call resolution + registry-primary flip + perf + generalization (RFC #909 Ring 3) (#980) 2026-04-21 15:50:00 +01:00
python-attribute-references.test.ts fix(python): link field readers and qualify incomplete results (#3795) 2026-11-01 14:01:35 +00:00
python-builtin-descriptors.test.ts fix(python): model restoring helper calls in decorator identity (#3415) 2026-09-29 12:37:27 +01:00
python-captures-golden.test.ts fix(deps): upgrade native tree-sitter to 0.25.1 (#3531) 2026-10-10 13:07:59 +03:00
python-constructor-field-bindings.test.ts fix(python): resolve calls through constructor-injected fields (#2628) 2026-07-22 16:32:53 +01:00
python-fixtures.test.ts fix(scope): resolve local imports by lexical ownership (#3532) 2026-10-10 08:13:55 +03:00
python-generic-annotation-reduction.test.ts fix(resolution): resolve calls through a generic-typed field receiver in every language (#2833) (#2855) 2026-08-07 17:14:13 +01:00
python-global-declarations.test.ts fix(scope): resolve local imports by lexical ownership (#3532) 2026-10-10 08:13:55 +03:00
python-hooks.test.ts fix(test): align fixtures and mocks with current types (#3471) 2026-10-05 04:47:37 +01:00
python-import-probe-count.test.ts refactor(ingestion): colocate import resolution rules (#3670) 2026-10-22 03:49:35 +00:00
python-import-target-parity.test.ts fix(python): resolve classes through module imports (#2770) 2026-08-01 06:02:47 +01:00
python-importer-ancestors.test.ts refactor(ingestion): colocate import resolution rules (#3670) 2026-10-22 03:49:35 +00:00
python-instance-fields.test.ts fix(python): link field readers and qualify incomplete results (#3795) 2026-11-01 14:01:35 +00:00
python-local-imports.test.ts fix(scope): resolve local imports by lexical ownership (#3532) 2026-10-10 08:13:55 +03:00
python-module-accessors.test.ts fix(python): resolve calls through module-returning accessors (#3542) 2026-10-10 18:41:51 +01:00
python-module-namespace-construction.test.ts fix(python): resolve calls through aliased package re-exports (#3504) 2026-10-08 13:51:20 +03:00
python-subtype-dispatch.test.ts fix(python): resolve decorator identity like CPython (#3411) 2026-09-29 08:12:52 +00:00