GitHub
04/15/2025, 7:17 PMget_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/sdkGitHub
04/15/2025, 7:17 PMget_tap_test_class does not work with th.OneOf
Issue closed as completed by edgarrmondragon
meltano/sdk