From ed81d7b14ff870c94190281c2c90db3128cc98a5 Mon Sep 17 00:00:00 2001 From: Yash Patel <86321070+yashpatel6@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:03:21 -0800 Subject: [PATCH] Fix path typing (#57) * Update CHANGELOG * Bump version * Cast Path to string before glob --- CHANGELOG.md | 6 ++++++ nftest/NFTestCase.py | 3 ++- nftest/__init__.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7489d71..cc89b4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/nftest/NFTestCase.py b/nftest/NFTestCase.py index f3e5c45..0f794ba 100644 --- a/nftest/NFTestCase.py +++ b/nftest/NFTestCase.py @@ -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 diff --git a/nftest/__init__.py b/nftest/__init__.py index dd1cb8a..559b50e 100644 --- a/nftest/__init__.py +++ b/nftest/__init__.py @@ -1,3 +1,3 @@ """ nftest module """ -__version__ = '1.0.0' +__version__ = '1.0.1'