因此,我在pytest.ini文件中定义了自定义标记 [pytest] foomark: Mark a test as foo 每当运行标记为foomark的测试时,我还需要在conftest.py中使用/执行一组特殊的钩子脚本实现。def pytest_foo_hook(request):
print("This is a foo-marked tes
我正在使用brownie来运行测试,现在我的项目是使用两个网络,development和mainnet-fork。我有一个只在mainnet-fork中运行的测试,我正在设法告诉布朗尼,当我执行时不应该运行这个测试:
brownie test -s --coverage --network development