loader.py 585 B

12345678910111213141516171819
  1. """Legacy test file - tests moved to test_loader.py"""
  2. # This file is kept for backwards compatibility
  3. # All tests have been moved to test_loader.py
  4. # with more comprehensive coverage
  5. from pathlib import Path
  6. from flowsint_core.templates.loader.yaml_loader import YamlLoader
  7. from flowsint_core.templates.types import Template
  8. TEST_DIR = Path(__file__).parent
  9. def test_yaml_loader_basic():
  10. """Basic YAML loading test."""
  11. file = YamlLoader.get_template_from_file(str(TEST_DIR / "example.yaml"))
  12. assert isinstance(file, Template)
  13. assert file.name == "ip-api-lookup"