Skip to content

Commit

Permalink
bugfix: nodeid when test is in a class
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Jan 20, 2020
1 parent 9504e16 commit 74c41a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/iamdefinitelyahuman/brownie)

### Fixed
- Correctly isolate path and nodeid from test cases inside classes

## [1.5.0](https://github.com/iamdefinitelyahuman/brownie/tree/v1.5.0) - 2020-01-20
### Added
- `interfaces/` folder for interface sources
- Support for `pytest-xdist`
- Tested support for Vyper with ethPM
- Progress bar when downloading a Brownie mix
- `get_abi` method for Solidity and Vyper compilers
Expand Down
2 changes: 1 addition & 1 deletion brownie/test/managers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _path(self, path):
return Path(path).absolute().relative_to(self.project_path).as_posix()

def _test_id(self, nodeid):
path, test_id = nodeid.split("::")
path, test_id = nodeid.split("::", maxsplit=1)
return self._path(path), test_id

def _get_hash(self, path):
Expand Down

0 comments on commit 74c41a5

Please sign in to comment.