Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Elwert committed Jan 15, 2025
1 parent 7044d50 commit 19c7cb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pelican/tests/test_theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def test_simple_theme(self):
output_file = os.path.join(self.temp_output, "test-md-file.html")
self.assertTrue(os.path.exists(output_file))

with open(output_file, "r") as f:
with open(output_file) as f:
content = f.read()

# Verify file content is present
self.assertIn("Test md File", content)

# Verify simple theme content is present
self.assertIn('<html lang="en">', content)
self.assertIn('Proudly powered by', content)
self.assertIn("Proudly powered by", content)

# Verify our custom theme additions are NOT present
# (since we should be using the simple theme's template directly)
Expand Down Expand Up @@ -119,7 +119,7 @@ def test_theme_inheritance(self):
output_file = os.path.join(self.temp_output, "test-md-file.html")
self.assertTrue(os.path.exists(output_file))

with open(output_file, "r") as f:
with open(output_file) as f:
content = f.read()

# Verify inheritance worked
Expand All @@ -133,8 +133,8 @@ def test_theme_inheritance(self):
'<link rel="stylesheet" type="text/css" href="http://example.com/theme/css/style.css"',
content,
)
self.assertNotIn('Proudly powered by', content)
self.assertIn('New footer', content)
self.assertNotIn("Proudly powered by", content)
self.assertIn("New footer", content)


if __name__ == "__main__":
Expand Down

0 comments on commit 19c7cb3

Please sign in to comment.