Files
nicholaswilde_recipes/scripts/test_recipe_1379.py
2026-07-02 20:55:35 -07:00

31 lines
1.0 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

################################################################################
#
# test_recipe_1379.py
# ----------------
# Test recipe 1379 parser validation
#
# @author nιcнolaѕ wιlde, 0x08b7d7a3
# @date 14 Jun 2026
# @version 0.1.0
#
################################################################################
import unittest
import os
class TestRecipe1379(unittest.TestCase):
def test_recipe_file_exists(self):
recipe_path = "docs/sides/vegetables/green-beans-with-lime-and-red-onions.md"
self.assertTrue(os.path.exists(recipe_path), f"Recipe file {recipe_path} should exist")
def test_recipe_content(self):
recipe_path = "docs/sides/vegetables/green-beans-with-lime-and-red-onions.md"
if os.path.exists(recipe_path):
with open(recipe_path, "r") as f:
content = f.read()
self.assertIn("Green Beans With Lime and Red Onions", content)
self.assertNotIn("draft: true", content)
if __name__ == "__main__":
unittest.main()