GitHub
02/28/2025, 9:14 AMget_tap_test_class does not work with th.OneOf
Issue created by ajeetdsouza
If I define a Stream like so:
class FileStream(Stream):
name: str = "files"
primary_keys: list[str] = ["path"]
schema: dict = th.PropertiesList(
th.Property("content", th.OneOf(th.StringType, th.ObjectType()))
).to_dict()
And attempt to define a test class:
TestTapFiles = get_tap_test_class(TapFiles, config=SAMPLE_CONFIG)
pytest will fail during test discovery itself, with the following error:
FAILED tap_test.py - ValueError: Could not detect type of replication key using schema '{}'
meltano/sdk