Python Programming - Testing - Discussion

Discussion Forum : Testing - General Questions (Q.No. 18)
18.
In Python testing, what is the purpose of the @classmethod decorator in a test case class?
Marks a method as a class method
Signals that the method is a test case
Defines the setup logic for a test case
It is not used in test case classes
Answer: Option
Explanation:
The @classmethod decorator in a test case class is used to mark a method as a class method.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.