mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-23 16:38:17 +00:00
Fix tearDown by using the proper file loader (#17994)
This commit is contained in:
parent
afd7887bd8
commit
d36f01abf6
@ -18,9 +18,9 @@ from abc import ABC, abstractmethod
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
import yaml
|
||||
from sqlalchemy.engine import Engine
|
||||
|
||||
from metadata.config.common import load_config_file
|
||||
from metadata.generated.schema.entity.services.databaseService import DatabaseService
|
||||
from metadata.generated.schema.metadataIngestion.workflow import (
|
||||
OpenMetadataWorkflowConfig,
|
||||
@ -54,7 +54,7 @@ class CliCommonDB:
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
workflow = OpenMetadataWorkflowConfig.model_validate(
|
||||
yaml.safe_load(open(cls.config_file_path))
|
||||
load_config_file(Path(cls.config_file_path))
|
||||
)
|
||||
db_service: DatabaseService = cls.openmetadata.get_by_name(
|
||||
DatabaseService, workflow.source.serviceName
|
||||
|
Loading…
x
Reference in New Issue
Block a user