Skip to content

test: fix collection errors in kit and recipes tests#283

Open
andrewwhitecdw wants to merge 4 commits into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:fix-test-collection-errors
Open

test: fix collection errors in kit and recipes tests#283
andrewwhitecdw wants to merge 4 commits into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:fix-test-collection-errors

Conversation

@andrewwhitecdw

Copy link
Copy Markdown
Contributor

This fixes three collection errors:
• tests/kit/test_resolvers_pre_init.py — imports now point to
nemo_runspec.config.resolvers, and the fake W&B mocks were updated for
the current wandb.Api(timeout=...) signature.
• tests/kit/cli/test_utils.py — imports now point to nemo_runspec.utils.
• src/nemotron/cli/commands/super3/data/prep/_typer_group.py — registers
the rl package as a Typer subgroup (add_typer) instead of a recipe
command, matching the pattern in super3/_typer_group.py.

Verified:

  uv run pytest tests/kit/test_resolvers_pre_init.py
tests/kit/cli/test_utils.py -v
  # 48 passed

- Update test_resolvers_pre_init.py to import from nemo_runspec.config.resolvers
- Update test_utils.py to import from nemo_runspec.utils
- Fix FakeWandb/FakeArtifact mocks for current wandb.Api signature
- Fix super3 data prep CLI to register rl as a typer subgroup, matching the
  pattern used in super3/_typer_group.py

Signed-off-by: Andrew White <andrewh@cdw.com>
@chrisalexiuk-nvidia

Copy link
Copy Markdown
Contributor

/claude review this bad boy

@chrisalexiuk-nvidia

Copy link
Copy Markdown
Contributor

/claude review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants