Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to group multiple test in pytest

# content of test_class.py
class TestClass:
    def test_one(self):
        x = "this"
        assert "h" in x

    def test_two(self):
        x = "hello"
        assert hasattr(x, "check")
Source by docs.pytest.org #
 
PREVIOUS NEXT
Tagged: #group #multiple #test #pytest
ADD COMMENT
Topic
Name
9+9 =