From 1fcf675f93275b7a9a7a18e4702045b29d6eb402 Mon Sep 17 00:00:00 2001 From: Paul Osinski Date: Wed, 3 Jan 2024 17:30:08 -0700 Subject: [PATCH] correct linting error --- unittests/test_parsers.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/unittests/test_parsers.py b/unittests/test_parsers.py index a678823f4fb..1bdf5819e15 100644 --- a/unittests/test_parsers.py +++ b/unittests/test_parsers.py @@ -27,16 +27,15 @@ def test_file_existence(self): self.assertTrue( os.path.isfile(doc_file), f"Documentation file '{doc_file}' is missing or using different name" - ) - + ) + content = open(doc_file).read() self.assertTrue(re.search("title:", content), f"Documentation file '{doc_file}' does not contain a title" - ) + ) self.assertTrue(re.search("toc_hide: true", content), f"Documentation file '{doc_file}' does not contain toc_hide: true" - ) - + ) if parser_dir.name not in [ # there is not exception for now