Skip to content
Merged
4 changes: 2 additions & 2 deletions shpc/tests/test_version_naming.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_version_naming_install(tmp_path, module_sys, module_file, container_tec
client = init_client(str(tmp_path), module_sys, container_tech)

client.settings.set("version_naming", True)
assert client.settings.set("version_naming", True) is True
assert client.settings.set("version_naming") == True
# Install known tag
client.install("python:3.9.2-alpine")

Expand All @@ -69,7 +69,7 @@ def test_disabled_version_naming_install(
client = init_client(str(tmp_path), module_sys, container_tech)

client.settings.set("version_naming", False)
assert client.settings.set("version_naming", False) is False
assert client.settings.set("version_naming") == False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to first set it, and then use get to check the setting is what you set it to.

# Install known tag
client.install("python:3.9.2-alpine")

Expand Down