nutter
nutter copied to clipboard
Is it possible to parametrise assertion names
Is it possible to insert variables within assertion function names? In the below, the function name will change based on the value of self.feature?
self.feature = 'abc'
def assertion_{self.feature}_test(self):
assert 1 == 1
Can you provide more details on the scenario where this feature may be useful?