@@ -88,7 +88,7 @@ def test_datatype_accepts_enum_for_manifest_valid(self):
8888
8989 def test_invalid_datatype_fails (self ):
9090 tmetadata = TableMetadata ()
91- with self .assertRaises (ValueError ) as ctx :
91+ with self .assertRaises (ValueError ):
9292 tmetadata .add_column_data_type ("col" , "invalid type" )
9393
9494 def test_table_description_metadata_for_legacy_manifest_is_valid (self ):
@@ -259,7 +259,7 @@ def test_out_old_to_new_has_headers_columns(self):
259259 self .assertEqual (manifest ["has_header" ], False )
260260
261261 def test_out_pkey_and_no_columns_incompatible (self ):
262- with self .assertRaises (UserException ) as e :
262+ with self .assertRaises (UserException ):
263263 TableDefinition ("testDef" , "somepath" , primary_key = ["foo" ])
264264
265265 def test_out_legacy_to_new_compatible (self ):
@@ -307,7 +307,7 @@ def test_table_manifest_minimal(self):
307307
308308 def test_table_manifest_missing_key (self ):
309309 with self .assertRaises (UserException ) as e :
310- table_def = TableDefinition (
310+ TableDefinition (
311311 "testDef" , "somepath" , is_sliced = False , primary_key = ["foo" , "bar" ]
312312 )
313313
@@ -596,7 +596,7 @@ def test_table_manifest_error_column_delete_3(self):
596596 def test_unsupported_legacy_queue_properties_log (self ):
597597 with self .assertLogs (level = "WARNING" ) as log :
598598 td = TableDefinition ("testDef" , "somepath" , write_always = True , stage = "out" )
599- manifest = td .get_manifest_dictionary (legacy_queue = True )
599+ td .get_manifest_dictionary (legacy_queue = True )
600600 self .assertEqual (len (log .output ), 1 )
601601 self .assertEqual (len (log .records ), 1 )
602602 self .assertIn (
@@ -1181,7 +1181,9 @@ def test_build_from_manifest_abs_staging(self):
11811181 )
11821182 self .assertEqual (
11831183 table_def .abs_staging .credentials_sas_connection_string ,
1184- "BlobEndpoint=https://asdf.blob.core.windows.net;SharedAccessSignature=sv=2017-11-09&sr=c&st=2020-08-27T08:42:08Z&se=2020-08-27T20:42:08Z&sp=rl&sig=UJW4DPh%2Baaaaaaaaaa" ,
1184+ "BlobEndpoint=https://asdf.blob.core.windows.net;SharedAccessSignature="
1185+
1186+ "sv=2017-11-09&sr=c&st=2020-08-27T08:42:08Z&se=2020-08-27T20:42:08Z&sp=rl&sig=UJW4DPh%2Baaaaaaaaaa" ,
11851187 )
11861188 self .assertEqual (table_def .abs_staging .is_sliced , True )
11871189 self .assertEqual (table_def .abs_staging .name , "12345.csv.gzmanifest" )
0 commit comments