import pytest
import requests
class TestCase(object):
def test_case_01(self):
assert 1
def test_case_02(self):
assert {"title":"v2ex"} != {"title":"V2EX"}
def test_case_03(self):
assert 1
def setup_class(self):
print("类级别的setup..........")
def teardown_class(self):
print("类级别的teardown........")
if __name__ == '__main__':
pytest.main(["-s","run类级别的setup和teardown.py"])