resolve this path too

This commit is contained in:
Matthew Donoughe 2022-10-19 08:08:21 -04:00
parent fb26e6b650
commit 93d82648e5
No known key found for this signature in database
GPG Key ID: 838812402CA8C19D
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class GenspiderCommandTest(CommandTest):
self.assertNotEqual(file_contents_after, file_contents_before)
else:
p, out, err = self.proc('genspider', file_name, 'example.com')
self.assertIn(f"{file_path} already exists", out)
self.assertIn(f"{file_path.resolve()} already exists", out)
modify_time_after = file_path.stat().st_mtime
self.assertEqual(modify_time_after, modify_time_before)
file_contents_after = file_path.read_text()