#15662 - List All test cases from a table in DQ (#15665)

* #15662 - List All test cases from a table in DQ

* #15662 - List All test cases from a table in DQ

* #15662 - List All test cases from a table in DQ
This commit is contained in:
Pere Miquel Brull 2024-03-22 11:30:02 +01:00 committed by GitHub
parent e01b4b1bd3
commit a79e79ef3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -83,11 +83,11 @@ class TestSuiteSource(Source):
) -> Optional[List[TestCase]]:
"""Return test cases if the test suite exists and has them"""
if test_suite:
test_cases = self.metadata.list_entities(
test_cases = self.metadata.list_all_entities(
entity=TestCase,
fields=["testSuite", "entityLink", "testDefinition"],
params={"testSuiteId": test_suite.id.__root__},
).entities
)
test_cases = cast(List[TestCase], test_cases) # satisfy type checker
return test_cases

View File

@ -13,7 +13,7 @@ External Table Lineage Mixin
"""
import traceback
from abc import ABC, abstractmethod
from abc import ABC
from typing import Iterable
from metadata.generated.schema.api.lineage.addLineage import AddLineageRequest