Skip to content

test: delete jax-using unit tests (moved to autofit_workspace_test)#1247

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/jax-assertions-sweep
May 1, 2026
Merged

test: delete jax-using unit tests (moved to autofit_workspace_test)#1247
Jammy2211 merged 1 commit into
mainfrom
feature/jax-assertions-sweep

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Removes source unit tests that imported jax. Completes the prior chat's work (9558988b0 library jax-optional + 3ef0d4662 conftest cleanup + 1caf713 5 assertions moved to workspace_test) by deleting the now-redundant test sources.

Changes

  • Delete test_autofit/jax/{test_pytrees,test_enable_pytrees,test_jit}.py + empty __init__.py. Tests moved to autofit_workspace_test/scripts/jax_assertions/{pytrees,enable_pytrees}.py. (test_jit.py was dead — all tests commented.)
  • Delete test_autofit/graphical/functionality/test_nested.py. Moved to autofit_workspace_test/scripts/jax_assertions/nested.py.
  • Delete test_autofit/graphical/functionality/test_jacobians.py. Dead code — all tests commented out long ago.
  • test_autofit/conftest.py: drop the now-pointless collect_ignore_glob block (its only targets — jax/*.py and test_jacobians.py — are gone). Drop the importlib.util import that was only used there.

No library code changes.

Merge dependency

Depends on autofit_workspace_test#21 merging first, so the moved assertions exist on main before the source tests are removed.

Test plan

  • Local pytest with jax installed: 1225 passed (no regression)
  • CI on this PR
Removes the source unit tests that imported jax — completes the prior
work (commits 9558988, 3ef0d46, 1692c8e, 1caf713) which made jax
optional in the library, gated jax tests with importorskip, and moved 5
Fitness/dispatch assertions to autofit_workspace_test. Now also removes:

- test_autofit/jax/{test_pytrees,test_enable_pytrees,test_jit}.py +
  empty __init__.py — moved to scripts/jax_assertions/{pytrees,enable_pytrees}.py
  in autofit_workspace_test (test_jit.py was dead — all tests commented).
- test_autofit/graphical/functionality/test_nested.py — moved to
  scripts/jax_assertions/nested.py.
- test_autofit/graphical/functionality/test_jacobians.py — dead code,
  all tests commented.
- conftest.py: simplified collect_ignore_glob block (no more
  jax-targeted ignore patterns since the targets are gone).

No library code changes. Local pytest: 1225 passed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 9512e44 into main May 1, 2026
3 checks passed
@Jammy2211 Jammy2211 deleted the feature/jax-assertions-sweep branch May 1, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant