Skip to content

test(deps): assert tensorflow stays unpinned across profiles#55

Open
ff225 wants to merge 1 commit into
mainfrom
test/deps-tensorflow-unpinned
Open

test(deps): assert tensorflow stays unpinned across profiles#55
ff225 wants to merge 1 commit into
mainfrom
test/deps-tensorflow-unpinned

Conversation

@ff225

@ff225 ff225 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

What

Reconcile tests/unit/test_dependency_profiles.py with the actual dependency design.

The test test_tensorflow_uses_platform_specific_supported_versions asserted platform-split, version-capped tensorflow pins (>=2.16,<2.17 on Intel macOS, >=2.17,<3 elsewhere). But pyproject.toml declares tensorflow unpinned in every runtime profile so the project isn't tied to a specific release — the assertions had drifted from reality and the test failed with StopIteration.

Change

Replaced it with test_tensorflow_is_declared_unpinned_in_every_profile, which asserts each runtime profile (server, client-static, client-laptop, client-raspberry-pi) has exactly one tensorflow requirement with no version specifier and no platform marker (still guarding against a stray tensorflow-macos).

No production code or pyproject.toml changes — keeping tensorflow version-agnostic is intentional.

Test

uv run pytest tests/unit/test_dependency_profiles.py
# 5 passed

Full fast suite: 176 passed, 1 skipped.

The previous test required platform-split, version-capped tensorflow
pins (>=2.16,<2.17 on Intel macOS, >=2.17,<3 elsewhere), but pyproject
declares tensorflow unpinned so profiles aren't tied to a release.
Reconcile the test with that intent: each runtime profile must have
exactly one tensorflow requirement with no version specifier and no
platform marker.
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.

1 participant