@@ -1286,6 +1286,59 @@ def test_destination_encryption_configuration_setter_w_none(self):
1286
1286
self .assertNotIn (
1287
1287
'destinationEncryptionConfiguration' , config ._properties ['load' ])
1288
1288
1289
+ def test_destination_table_description_missing (self ):
1290
+ config = self ._get_target_class ()()
1291
+ self .assertIsNone (config .destination_table_description )
1292
+
1293
+ def test_destination_table_description_hit (self ):
1294
+ description = 'Description'
1295
+ config = self ._get_target_class ()()
1296
+ config ._properties ['load' ]['destinationTableProperties' ] = {
1297
+ 'description' : description ,
1298
+ }
1299
+ self .assertEqual (
1300
+ config .destination_table_description , description )
1301
+
1302
+ def test_destination_table_description_setter (self ):
1303
+ description = 'Description'
1304
+ config = self ._get_target_class ()()
1305
+ config .destination_table_description = description
1306
+ expected = {
1307
+ 'description' : description ,
1308
+ }
1309
+ self .assertEqual (
1310
+ config ._properties ['load' ]['destinationTableProperties' ], expected )
1311
+
1312
+ def test_destination_table_description_setter_w_fn_already (self ):
1313
+ description = 'Description'
1314
+ friendly_name = 'Friendly Name'
1315
+ config = self ._get_target_class ()()
1316
+ config ._properties ['load' ]['destinationTableProperties' ] = {
1317
+ 'friendlyName' : friendly_name ,
1318
+ }
1319
+ config .destination_table_description = description
1320
+ expected = {
1321
+ 'friendlyName' : friendly_name ,
1322
+ 'description' : description ,
1323
+ }
1324
+ self .assertEqual (
1325
+ config ._properties ['load' ]['destinationTableProperties' ], expected )
1326
+
1327
+ def test_destination_table_description_w_none (self ):
1328
+ description = 'Description'
1329
+ friendly_name = 'Friendly Name'
1330
+ config = self ._get_target_class ()()
1331
+ config ._properties ['load' ]['destinationTableProperties' ] = {
1332
+ 'description' : description ,
1333
+ 'friendlyName' : friendly_name ,
1334
+ }
1335
+ config .destination_table_description = None
1336
+ expected = {
1337
+ 'friendlyName' : friendly_name ,
1338
+ }
1339
+ self .assertEqual (
1340
+ config ._properties ['load' ]['destinationTableProperties' ], expected )
1341
+
1289
1342
def test_encoding_missing (self ):
1290
1343
config = self ._get_target_class ()()
1291
1344
self .assertIsNone (config .encoding )
0 commit comments