摘要: 类似setup和teardown 1.要使用fixture,需要用装饰器被引用的用@pytest.fixture,引用的用@pytest.mark.usefixtures(‘test1’) 2.fixture自动应用方式@pytest.fixture(sutouse=True),会应用于所有方法 3 阅读全文
posted @ 2021-09-04 22:39 风舞夭妖 阅读(225) 评论(0) 推荐(0)
摘要: 当下载国外的相关包特别慢的时候,需要借助镜像地址,这样可以加快下载速度。 pip install -i 镜像地址 --trusted-host 镜像地址对应的host 举例:pip3 install jupyter -i http://pypi.douban.com/simple/ --truste 阅读全文
posted @ 2021-08-20 23:05 风舞夭妖 阅读(423) 评论(0) 推荐(0)