# Path: model_card_toolkit/utils/testdata/testdata_utils.py
# _TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), 'tfx_oss_0_21')
# _TFX_0_21_DB_FILE = 'metadata.sqlite'
# _TFX_0_21_PAYLOAD_DIR = '/tmp/tfx-interactive-2020-03-24T21_31_20.888155-mny0kawj'
# TFX_0_21_METRICS_ARTIFACT_IDS = (9, 11)
# TFX_0_21_MODEL_ARTIFACT_ID = 8
# TFX_0_21_MODEL_DATASET_ID = 2
# TFX_0_21_MODEL_URI = os.path.join(_TEST_DATA_DIR, 'Trainer/model/6')
# TFX_0_21_STATS_ARTIFACT_ID = 3
# TFX_0_21_TRAINER_ID = 6
# def get_tfx_pipeline_metadata_store(tmp_db_path: str) -> mlmd.MetadataStore:


import os
from absl.testing import absltest
from model_card_toolkit.utils.testdata import testdata_utils
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for testdata_utils."""





class TestDataUtilsTest(absltest.TestCase):

  def setUp(self):
    super(TestDataUtilsTest, self).setUp()
    tmp_db_path = os.path.join(absltest.get_default_test_tmpdir(), 'test.db')

# Path: model_card_toolkit/utils/testdata/testdata_utils.py
# _TEST_DATA_DIR = os.path.join(os.path.dirname(__file__), 'tfx_oss_0_21')
# _TFX_0_21_DB_FILE = 'metadata.sqlite'
# _TFX_0_21_PAYLOAD_DIR = '/tmp/tfx-interactive-2020-03-24T21_31_20.888155-mny0kawj'
# TFX_0_21_METRICS_ARTIFACT_IDS = (9, 11)
# TFX_0_21_MODEL_ARTIFACT_ID = 8
# TFX_0_21_MODEL_DATASET_ID = 2
# TFX_0_21_MODEL_URI = os.path.join(_TEST_DATA_DIR, 'Trainer/model/6')
# TFX_0_21_STATS_ARTIFACT_ID = 3
# TFX_0_21_TRAINER_ID = 6
# def get_tfx_pipeline_metadata_store(tmp_db_path: str) -> mlmd.MetadataStore:


# Path: model_card_toolkit/utils/testdata/testdata_utils_test.py
import os
from absl.testing import absltest
from model_card_toolkit.utils.testdata import testdata_utils

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for testdata_utils."""





class TestDataUtilsTest(absltest.TestCase):

  def setUp(self):
    super(TestDataUtilsTest, self).setUp()
    tmp_db_path = os.path.join(absltest.get_default_test_tmpdir(), 'test.db')

    self.store = testdata_utils.get_tfx_pipeline_metadata_store(tmp_db_path)