Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Which of the following decorator need to be used while working with setUpClass and tearDownClass fixtures?
Home
Python
Which of the following decorator need to be used while working with setUpClass and tearDownClass...
asked
Jun 30, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
Q. Which of the following decorator need to be used while working with setUpClass and tearDownClass fixtures?
1). @classmethod --
2). @classfixture
3). @classtest
4). @testclass
#python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 30, 2020
by
GeorgeBell
(
5.1k
points)
Ans is @classmethod
Related questions
0
votes
Q: Which of the following decorator is used to assign user defined setup and tear down functions to a test function, while using nose?
asked
Jul 2, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: Which of the following decorator is used to skip a test unconditionally, with pytest?
asked
Jul 16, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: Q. Which of the following decorator is used to skip a test if a given condition is false, with unittest?
asked
Jun 30, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: What is the purpose of using self.id in tests, while working with unittest?
asked
Jun 30, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
+1
vote
Q: Which of the following decorator is used to transform a user defined function into a fixture using pytest?
asked
Jul 16, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: Which of the following decorator is used to report a test as a failure one, if execution of it takes more than the specified number of seconds?
asked
Jul 2, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
+1
vote
Q: Which of the following are the function level fixtures available in pytest?
asked
Jul 16, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: What all Test Fixtures used in NOSE Python?
asked
Jul 2, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: nose supports use of fixtures at package level. State true or false.
asked
Jul 2, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: Which of the following statement ensures that all tests present in sample_test_module.py are run while using the command python sample_test_module.py
asked
Jul 2, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: Which of the following method is used to check equality of two lists in a test, with unitest?
asked
Jun 30, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: Which of the following method is used to catch exceptions in a test, with unittest?
asked
Jun 30, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: Which methods can be used with list objects?
asked
May 15, 2019
in
Python
by
Derya
(
515
points)
#python
Python-questions-answers
0
votes
Q: Which of the following special attribute can be used to access a doc string in a program?
asked
Jul 10, 2020
in
Python
by
GeorgeBell
(
5.1k
points)
#python
Python-questions-answers
0
votes
Q: What is the output of the following code? count = 0 while count < 2: print (count, " is less than 2") count = count + 2 else: print (count, " is not less than 2")
asked
May 17, 2019
in
Python
by
Derya
(
515
points)
#python
Python-questions-answers
...