a Փ?g @sbddlZddlmmZddlZddlmZddl m Z ej ddZ ej ddZ dd ZdS) N) TestClient)appcCs0tt}|WdS1s"0YdS)N)rr)clientrO/home/cmiss/Jenkins/workspace/12-Labours-API/tests/test_data/test_irods_data.pyrs rcCs"dddd}|jd|d}|S)Nzdummy_email@gmail.comdummy_machine_iddummy_expiration_time)emailmachine expirationz /access/token)json)postr )r dummy_dataresponserrrtoken s rc Csddi}|jd|dd|did}|}|d}d d d d d d g}||k}|std|fd||ft|t|d}dd|i} tt| d}}}|d}ddd ddd ddd g}||k}|s td|fd||ft|t|d}dd|i} tt| d}}}ddi} |jd| dd|did}|}|d}d dd ddd d dd dd d g}||k}|std|fd||ft|t|d}dd|i} tt| d}}}|d}d!d"d dd#d d$d%d dd&d d'd(d d)d*d d+d,d g}||k}|s~td|fd||ft|t|d}dd|i} tt| d}}}dS)-Npathz/dataset-217-version-2z /collection AuthorizationzBearer access_token)r headersfoldersZ derivativez!/dataset-217-version-2/derivative)namerZprimaryz/dataset-217-version-2/primary)==)z%(py1)s == %(py4)s)py1py4zassert %(py6)spy6fileszdataset_description_gen3.jsonz4/dataset-217-version-2/dataset_description_gen3.jsonzdataset_description.xlsxz//dataset-217-version-2/dataset_description.xlsxzmanifest_gen3.jsonz)/dataset-217-version-2/manifest_gen3.jsonz/dataset-46-version-2z /dataset-46-version-2/derivativedocsz/dataset-46-version-2/docsz/dataset-46-version-2/primarysourcez/dataset-46-version-2/sourcezdataset_description.jsonz./dataset-46-version-2/dataset_description.jsonz./dataset-46-version-2/dataset_description.xlsxzexperiment.jsonz%/dataset-46-version-2/experiment.jsonz(/dataset-46-version-2/manifest_gen3.jsonz manifest.xlsxz#/dataset-46-version-2/manifest.xlsxz subjects.jsonz#/dataset-46-version-2/subjects.jsonz subjects.xlsxz#/dataset-46-version-2/subjects.xlsx)r r @pytest_ar_call_reprcompare _safereprAssertionError_format_explanation) rrZpayload1rresult @py_assert0 @py_assert3 @py_assert2 @py_format5 @py_format7Zpayload2rrrtest_irods_collections$zr))builtins @py_builtins_pytest.assertion.rewrite assertionrewriterpytestfastapi.testclientrapp.mainrfixturerrr)rrrrs"