@@ -8395,9 +8395,19 @@ def test_schema_from_json_with_file_path(self):
83958395 ]"""
83968396
83978397 expected = [
8398- SchemaField ("qtr" , "STRING" , "REQUIRED" , "quarter" ),
8399- SchemaField ("rep" , "STRING" , "NULLABLE" , "sales representative" ),
8400- SchemaField ("sales" , "FLOAT" , "NULLABLE" , "total sales" ),
8398+ SchemaField ("qtr" , "STRING" , "REQUIRED" , description = "quarter" ),
8399+ SchemaField (
8400+ "rep" ,
8401+ "STRING" ,
8402+ "NULLABLE" ,
8403+ description = "sales representative" ,
8404+ ),
8405+ SchemaField (
8406+ "sales" ,
8407+ "FLOAT" ,
8408+ "NULLABLE" ,
8409+ description = "total sales" ,
8410+ ),
84018411 ]
84028412
84038413 client = self ._make_client ()
@@ -8441,9 +8451,11 @@ def test_schema_from_json_with_file_object(self):
84418451 ]"""
84428452
84438453 expected = [
8444- SchemaField ("qtr" , "STRING" , "REQUIRED" , "quarter" ),
8445- SchemaField ("rep" , "STRING" , "NULLABLE" , "sales representative" ),
8446- SchemaField ("sales" , "FLOAT" , "NULLABLE" , "total sales" ),
8454+ SchemaField ("qtr" , "STRING" , "REQUIRED" , description = "quarter" ),
8455+ SchemaField (
8456+ "rep" , "STRING" , "NULLABLE" , description = "sales representative"
8457+ ),
8458+ SchemaField ("sales" , "FLOAT" , "NULLABLE" , description = "total sales" ),
84478459 ]
84488460
84498461 client = self ._make_client ()
@@ -8477,9 +8489,11 @@ def test_schema_to_json_with_file_path(self):
84778489 ]
84788490
84798491 schema_list = [
8480- SchemaField ("qtr" , "STRING" , "REQUIRED" , "quarter" ),
8481- SchemaField ("rep" , "STRING" , "NULLABLE" , "sales representative" ),
8482- SchemaField ("sales" , "FLOAT" , "NULLABLE" , "total sales" ),
8492+ SchemaField ("qtr" , "STRING" , "REQUIRED" , description = "quarter" ),
8493+ SchemaField (
8494+ "rep" , "STRING" , "NULLABLE" , description = "sales representative"
8495+ ),
8496+ SchemaField ("sales" , "FLOAT" , "NULLABLE" , description = "total sales" ),
84838497 ]
84848498
84858499 client = self ._make_client ()
@@ -8521,9 +8535,11 @@ def test_schema_to_json_with_file_object(self):
85218535 ]
85228536
85238537 schema_list = [
8524- SchemaField ("qtr" , "STRING" , "REQUIRED" , "quarter" ),
8525- SchemaField ("rep" , "STRING" , "NULLABLE" , "sales representative" ),
8526- SchemaField ("sales" , "FLOAT" , "NULLABLE" , "total sales" ),
8538+ SchemaField ("qtr" , "STRING" , "REQUIRED" , description = "quarter" ),
8539+ SchemaField (
8540+ "rep" , "STRING" , "NULLABLE" , description = "sales representative"
8541+ ),
8542+ SchemaField ("sales" , "FLOAT" , "NULLABLE" , description = "total sales" ),
85278543 ]
85288544
85298545 fake_file = io .StringIO ()
0 commit comments