def test_project_locked_with_allowed_values(lock: bool, status: ProjectStatus): with pytest.raises(ValueError): ProjectLocked.parse_obj({"value": lock, "status": status})
def test_project_locked_with_missing_owner_raises(): with pytest.raises(ValueError): ProjectLocked(**{"value": True, "status": ProjectStatus.OPENED}) ProjectLocked.parse_obj({"value": False, "status": ProjectStatus.OPENED})