def test_import_from_path(session): file = get_dataset_folder().joinpath('it_emx_autoid.xlsx') run_commander('import --from-path {}'.format(str(file))) result = session.get('it_emx_autoid_testAutoId') assert len(result) > 0 # cleanup session.delete('sys_md_Package', 'it')
def test_import_from_path_in_package(session, package): file = get_dataset_folder().joinpath('testAutoId_unpackaged.xlsx') run_commander('import --from-path {} --in {}'.format(file, package)) result = session.get('{}_testAutoId'.format(package)) assert len(result) > 0