Skip to content

Commit

Permalink
correct linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Osinski committed Jan 4, 2024
1 parent 46790e0 commit 1fcf675
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions unittests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fcf675

Please sign in to comment.