mirror of
https://github.com/nicholaswilde/recipes.git
synced 2026-08-18 02:54:22 +00:00
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
################################################################################
|
||
#
|
||
# 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()
|