Skip to content

Commit

Permalink
update calls in some GFI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aschroed committed Apr 22, 2022
1 parent 454460d commit d91d330
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_get_field_info.py
Expand Up @@ -384,7 +384,7 @@ def test_create_xlsx_default_options(connection_mock, mocker, returned_bcc_schem
pass
mocker.patch('dcicutils.ff_utils.get_metadata', return_value=returned_bcc_schema.json())
field_dict = gfi.get_uploadable_fields(connection_mock, ['BiosampleCellCulture'])
gfi.create_xls(field_dict, xls_file)
gfi.create_excel(field_dict, xls_file)
assert Path(xls_file).is_file()
assert xls_to_list(xls_file, "BiosampleCellCulture") == EXPECTED
try:
Expand Down Expand Up @@ -412,7 +412,7 @@ def test_create_xlsx_non_defaults(connection_mock, mocker, returned_bcc_schema):
pass
mocker.patch('dcicutils.ff_utils.get_metadata', return_value=returned_bcc_schema.json())
field_dict = gfi.get_uploadable_fields(connection_mock, ['BiosampleCellCulture'], no_description=True, include_comments=True, no_enums=True)
gfi.create_xls(field_dict, xls_file)
gfi.create_excel(field_dict, xls_file)
assert os.path.isfile(xls_file)
assert xls_to_list(xls_file, "BiosampleCellCulture") == EXPECTED
try:
Expand All @@ -432,7 +432,7 @@ def test_create_xls_lookup_order(connection_mock, mocker, returned_vendor_schema
pass
mocker.patch('dcicutils.ff_utils.get_metadata', return_value=returned_vendor_schema_l.json())
field_dict = gfi.get_uploadable_fields(connection_mock, ['Vendor'])
gfi.create_xls(field_dict, xls_file)
gfi.create_excel(field_dict, xls_file)
assert Path(xls_file).is_file()
assert xls_field_order(xls_file, "Vendor") == ref_list
try:
Expand Down

0 comments on commit d91d330

Please sign in to comment.