Skip to content

Commit 31c386d

Browse files
committed
Add test
1 parent 2092487 commit 31c386d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/python/python_tests.bzl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -896,11 +896,10 @@ def _test_single_version_platform_override_from_env_minor_version(env):
896896
logger = repo_utils.logger(verbosity_level = 0, name = "python"),
897897
)
898898

899-
env.expect.that_dict(py.config.default["tool_versions"]["3.13.6"]).contains_exactly({
900-
"sha256": {"aarch64-unknown-linux-gnu": "deadbeef"},
901-
"strip_prefix": {"aarch64-unknown-linux-gnu": "my-prefix"},
902-
"url": {"aarch64-unknown-linux-gnu": ["example.com", "example.org"]},
903-
})
899+
tool_versions = py.config.default["tool_versions"]["3.13.6"]
900+
env.expect.that_str(tool_versions["sha256"]["aarch64-unknown-linux-gnu"]).equals("deadbeef")
901+
env.expect.that_str(tool_versions["strip_prefix"]["aarch64-unknown-linux-gnu"]).equals("my-prefix")
902+
env.expect.that_collection(tool_versions["url"]["aarch64-unknown-linux-gnu"]).contains_exactly(["example.com", "example.org"])
904903

905904
_tests.append(_test_single_version_platform_override_from_env_minor_version)
906905

0 commit comments

Comments
 (0)