<#2889 bug: `get_tap_test_class` does not work wit...
# meltano-repo-activity
g
#2889 bug:
get_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:
Copy code
FAILED tap_test.py - ValueError: Could not detect type of replication key using schema '{}'
meltano/sdk