Remove unused imports and make PdfDocument_test a pytest function

This commit is contained in:
Leon Luithlen 2024-11-13 14:26:05 +01:00
parent af88870076
commit aa1480ca2c
3 changed files with 3 additions and 11 deletions

View file

@ -9,7 +9,7 @@ GROUND_TRUTH = [
]
if __name__ == "__main__":
def test_PdfDocument():
test_file_path = os.path.join(
os.sep,
*(os.path.dirname(__file__).split(os.sep)[:-2]),

View file

@ -1,8 +1,3 @@
from cognee.infrastructure.engine import DataPoint
from cognee.modules.graph.utils import (
get_graph_from_model,
get_model_instance_from_graph,
)
from cognee.tests.unit.interfaces.graph.util import run_test_against_ground_truth
EDGE_GROUND_TRUTH = (

View file

@ -1,12 +1,9 @@
from datetime import datetime, timezone
from typing import Any, Dict
from typing import Dict, Any
def run_test_against_ground_truth(
test_target_item_name: str,
test_target_item: Any,
ground_truth_dict: Dict[str, Any]
test_target_item_name: str, test_target_item: Any, ground_truth_dict: Dict[str, Any]
):
"""Validates test target item attributes against ground truth values.