try fixing test?

This commit is contained in:
Matthias Mair 2025-02-05 08:04:56 +01:00
parent 97b4914ad9
commit 0d271a9944
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ class GeneralApiTests(InvenTreeAPITestCase):
# File is not a json
with self.assertLogs(logger='inventree', level='ERROR') as log:
respo = read_license_file(Path(sample_file.file.name))
respo = read_license_file(Path(str(sample_file.file.name)))
self.assertEqual(respo, [])
self.assertIn('Failed to parse license file', str(log.output))