eth-brownie / brownie

A Python-based development and testing framework for smart contracts targeting the Ethereum Virtual Machine.

Home Page:https://eth-brownie.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong Link To PyTest Isolation Guide

iluxonchik opened this issue · comments

Environment information

  • brownie Version: 1.19.2
  • ganache-cli Version: 6.12.2
  • solc Version: 0.8.0
  • Python Version: 3.11.0
  • OS: OSX

What was wrong?

When attempting to run parallel tests on test cases that are not properly isolated, the resulting error message contains a faulty URL. An example command that can be used to reproduce this issue is: brownie test -k <test_file_name> -n 10. The error message displayed is:

ERROR: xdist workers failed to collect tests. Ensure all test cases are isolated with the module_isolation or fn_isolation fixtures.

https://eth-brownie.readthedocs.io/en/stable/tests.html#isolating-tests

However, this URL leads to a non-existent, 404 page.

How can it be fixed?

Update the URL in the error message to the correct page: https://eth-brownie.readthedocs.io/en/stable/tests-pytest-intro.html#pytest-fixtures-isolation

Submitted PR here: #1649