Skip to content

Commit

Permalink
Fix path typing (#57)
Browse files Browse the repository at this point in the history
* Update CHANGELOG

* Bump version

* Cast Path to string before glob
  • Loading branch information
yashpatel6 authored Jan 8, 2024
1 parent 39f1119 commit ed81d7b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

---

## [1.0.1] - 2024-01-05
### Fixed
- Path type passed to glob to identify files

---

## [1.0.0] - 2023-10-23
### Added
- Support for patterns in expected and actual file paths
Expand Down
3 changes: 2 additions & 1 deletion nftest/NFTestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def resolve_actual(self, asserts:List[NFTestAssert]=None):
return []

for assertion in asserts:
assertion.actual = Path(self._env.NFT_OUTPUT)/self.name_for_output/assertion.actual
assertion.actual = str(
Path(self._env.NFT_OUTPUT)/self.name_for_output/assertion.actual)

return asserts

Expand Down
2 changes: 1 addition & 1 deletion nftest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
""" nftest module """

__version__ = '1.0.0'
__version__ = '1.0.1'

0 comments on commit ed81d7b

Please sign in to comment.