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

32 lines
1.1 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_1378.py
# ----------------
# Test recipe 1378 parser validation
#
# @author nιcнolaѕ wιlde, 0x08b7d7a3
# @date 14 Jun 2026
# @version 0.1.0
#
################################################################################
import unittest
import os
class TestRecipe1378(unittest.TestCase):
def test_recipe_file_exists(self):
recipe_path = "docs/sides/vegetables/ginger-and-garlic-green-beans.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/ginger-and-garlic-green-beans.md"
if os.path.exists(recipe_path):
with open(recipe_path, "r") as f:
content = f.read()
self.assertIn("Ginger and Garlic Green Beans", content)
# Check that it doesn't contain placeholders or draft markers
self.assertNotIn("draft: true", content)
if __name__ == "__main__":
unittest.main()