如上图中右侧,我出现了乱码,因为pytest会转义unicode字符串中用于参数化的任何非ascii字符,
解决方法:
我们在根目录下的pytest.ini文件中添加如下代码:(文件名: pytest.ini(没有就新建))
[pytest]
disable_test_id_escaping_and_forfeit_all_rights_to_community_support = True
重写运行
如上图中右侧,我出现了乱码,因为pytest会转义unicode字符串中用于参数化的任何非ascii字符,
解决方法:
我们在根目录下的pytest.ini文件中添加如下代码:(文件名: pytest.ini(没有就新建))
[pytest]
disable_test_id_escaping_and_forfeit_all_rights_to_community_support = True
重写运行