style fixes

This commit is contained in:
Peter Josef Scheibel
2022-11-01 11:18:25 -07:00
committed by Gregory Becker
parent e09623060b
commit 186532bac1

View File

@@ -204,15 +204,15 @@ def test_config_set_pkg_property_new(self, mutable_mock_repo):
)
spec = concretize("mpileaks")
assert spec.package.x == 1
assert spec.package.y == True
assert spec.package.w == True
assert spec.package.y is True
assert spec.package.w is True
assert spec.package.z == "yesterday"
def test_config_set_pkg_property_collecton_unsupported(self, mutable_mock_repo):
"""Test that an error is raised if you attempt to assign a list value"""
update_packages("mpileaks", "package_attributes", {"x": ["a", "b"]})
with pytest.raises(ConfigError):
spec = concretize("mpileaks")
concretize("mpileaks")
def test_preferred(self):
""" "Test packages with some version marked as preferred=True"""