Unresolved attribute reference 'expend' for class 'parameterized'
- User
Unresolved attribute reference 'expend' for class 'parameterized'
- Assistant
It seems that there is a typo in the attribute name 'expend'. The correct attribute name for the 'parameterized' class should be 'extend'. Here's an example of how to use the 'extend' attribute in the 'parameterized' class:
pythonfrom parameterized import parameterized class TestMyClass(unittest.TestCase): @parameterized.expand([ ('test1', 1, 2), ('test2', 3, 4), ]) def test_my_method(self, name, a, b): self.assertEqual(a + b, 3)In this example, the
@parameterized.expanddecorator is used to generate multiple test methods from a list of parameters. Theexpandattribute is used to specify the list of parameters, where each element is a tuple containing the arguments for the test method.So, in your case, you should change the 'expend' attribute to 'extend' to resolve the error.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.