Skip to content

Commit

Permalink
Enable batch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Mar 20, 2024
1 parent 2d604c1 commit c74cd05
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions tests/test_target_snowflake.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from target_snowflake.target import TargetSnowflake

from .batch import batch_target_tests
from .core import target_tests

SAMPLE_CONFIG: dict[str, Any] = {
Expand Down Expand Up @@ -70,16 +71,16 @@ class TestTargetSnowflake(BaseSnowflakeTargetTests, StandardTargetTests): # typ


# # Custom so I can implement all validate methods
# BATCH_TEST_CONFIG = copy.deepcopy(SAMPLE_CONFIG)
# BATCH_TEST_CONFIG["default_target_schema"] = f"TARGET_SNOWFLAKE_{uuid.uuid4().hex[0:6]!s}"
# BATCH_TEST_CONFIG["add_record_metadata"] = False
# BatchTargetTests = get_target_test_class(
# target_class=TargetSnowflake,
# config=BATCH_TEST_CONFIG,
# custom_suites=[batch_target_tests],
# suite_config=None,
# include_target_tests=False,
# )
BATCH_TEST_CONFIG = copy.deepcopy(SAMPLE_CONFIG)
BATCH_TEST_CONFIG["default_target_schema"] = f"TARGET_SNOWFLAKE_{uuid.uuid4().hex[0:6]!s}"
BATCH_TEST_CONFIG["add_record_metadata"] = False
BatchTargetTests = get_target_test_class(
target_class=TargetSnowflake,
config=BATCH_TEST_CONFIG,
custom_suites=[batch_target_tests],
suite_config=None,
include_target_tests=False,
)


# class TestTargetSnowflakeBatch(BaseSnowflakeTargetTests, BatchTargetTests): # type: ignore[misc, valid-type]
Expand Down

0 comments on commit c74cd05

Please sign in to comment.