def test_exclude_specified_invalid(self): with pytest.raises(ValueError) as e: enabled_test_names({"foo", "bar", "baz"}, None, "what,the") assert "the, what" in str(e.value)
def test_exclude_specified(self): result = enabled_test_names({"foo", "bar", "baz"}, None, "bar,baz") expected_result = {"foo"} assert expected_result == result
def test_all_enabled(self): result = enabled_test_names({"foo", "bar", "baz"}) expected_result = {"foo", "bar", "baz"} assert expected_result == result