📜  如何在 pytest 中对多个测试进行分组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:25.008000             🧑  作者: Mango

代码示例1
# 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")