小编sha*_*ong的帖子

Python - Using pytest to skip test unless specified

Background

I have am using pytest to test a web scraper that pushes the data to a database. The class only pulls the html and pushes the html to a database to be parsed later. Most of my tests use dummy data to represent the html.

Question

I want to do a test where a webpage from the website is scraped but I want the test to be automatically turned off unless specified. A similar scenario could be if you …

python testing pytest python-3.x

6
推荐指数
3
解决办法
1751
查看次数

标签 统计

pytest ×1

python ×1

python-3.x ×1

testing ×1