in Python by (5.2k points)

Q. Which of the following decorator is used to transform a user defined function into a fixture using pytest?

A. @pytest

B. @pytest.fixture 

C. @pytest.fixtures

D. @fixtures 

1 Answer

0 votes
by (5.2k points)
Ans is

@pytest.fixture

Related questions

0 votes
asked Jul 2, 2020 in Python by GeorgeBell (5.2k points)
0 votes
asked Jul 2, 2020 in Python by GeorgeBell (5.2k points)
0 votes
asked Jul 2, 2020 in Python by GeorgeBell (5.2k points)
...