mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-30 10:05:41 +00:00
* #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:
parent
e01b4b1bd3
commit
a79e79ef3d
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user