1
0
mirror of synced 2026-01-09 15:05:02 -05:00
Files
airbyte/airbyte-integrations/bases/source-acceptance-test/source_acceptance_test/base.py

22 lines
577 B
Python

#
# Copyright (c) 2022 Airbyte, Inc., all rights reserved.
#
import inflection
import pytest
from source_acceptance_test.config import Config
@pytest.mark.usefixtures("inputs")
class BaseTest:
@classmethod
def config_key(cls):
"""Name of the test in configuration file, used to override test inputs,"""
class_name = cls.__name__
if class_name.startswith("Test"):
class_name = class_name[len("Test") :]
return inflection.underscore(class_name)
MANDATORY_FOR_TEST_STRICTNESS_LEVELS = [Config.TestStrictnessLevel.high]