nutter icon indicating copy to clipboard operation
nutter copied to clipboard

Is it possible to parametrise assertion names

Open albertnjoku opened this issue 3 years ago • 1 comments

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

albertnjoku avatar Nov 18 '20 07:11 albertnjoku

Can you provide more details on the scenario where this feature may be useful?

giventocode avatar Dec 01 '20 16:12 giventocode