@@ -86,26 +86,26 @@ def test_build_dynamic_stream_full_table(self):
8686 """Test build_dynamic_stream returns FullTableStream subclass when method is FULL_TABLE."""
8787 catalog_entry = MagicMock ()
8888 catalog_entry .stream = "accounts"
89- catalog_entry .tap_stream_id = "Accounts "
89+ catalog_entry .tap_stream_id = "accounts "
9090 catalog_entry .key_properties = ["id" ]
9191
9292 # Here's the mocked metadata (as a raw dict)
9393 catalog_entry .metadata = [
9494 {
9595 "breadcrumb" : [],
9696 "metadata" : {
97- "tap_stream_id" : "Accounts " ,
97+ "tap_stream_id" : "accounts " ,
9898 "forced-replication-method" : "FULL_TABLE" ,
9999 "valid-replication-keys" : ["id" ]
100100 }
101101 }
102102 ]
103103
104104 mock_client = MagicMock ()
105- stream_instance = build_dynamic_stream (mock_client , catalog_entry )
105+ stream_instance = build_dynamic_stream (mock_client , catalog_entry , "Accounts" )
106106
107107 self .assertIsInstance (stream_instance , FullTableStream )
108- self .assertEqual (stream_instance .tap_stream_id , "Accounts " )
108+ self .assertEqual (stream_instance .tap_stream_id , "accounts " )
109109 self .assertEqual (stream_instance .key_properties , ["id" ])
110110 self .assertEqual (stream_instance .replication_method , "FULL_TABLE" )
111111 self .assertEqual (stream_instance .replication_keys , ["id" ])
@@ -117,24 +117,24 @@ def test_build_dynamic_stream_incremental(self):
117117 """Test build_dynamic_stream returns IncrementalStream subclass when method is INCREMENTAL."""
118118 catalog_entry = MagicMock ()
119119 catalog_entry .stream = "contacts"
120- catalog_entry .tap_stream_id = "Contacts "
120+ catalog_entry .tap_stream_id = "contacts "
121121 catalog_entry .key_properties = ["id" ]
122122 catalog_entry .metadata = [
123123 {
124124 "breadcrumb" : [],
125125 "metadata" : {
126- "tap_stream_id" : "Contacts " ,
126+ "tap_stream_id" : "contacts " ,
127127 "forced-replication-method" : "INCREMENTAL" ,
128128 "valid-replication-keys" : ["updated_at" ]
129129 }
130130 }
131131 ]
132132
133133 mock_client = MagicMock ()
134- stream_instance = build_dynamic_stream (mock_client , catalog_entry )
134+ stream_instance = build_dynamic_stream (mock_client , catalog_entry , "Contacts" )
135135
136136 self .assertIsInstance (stream_instance , IncrementalStream )
137- self .assertEqual (stream_instance .tap_stream_id , "Contacts " )
137+ self .assertEqual (stream_instance .tap_stream_id , "contacts " )
138138 self .assertEqual (stream_instance .replication_method , "INCREMENTAL" )
139139 self .assertEqual (stream_instance .replication_keys , ["updated_at" ])
140140 self .assertEqual (stream_instance .path , "Contacts" )
0 commit comments