diff --git a/.gitignore b/.gitignore index bef94c7..3c6facf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pyc *.egg-info .pytest_cache/ +.idea diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1647568..7d22a7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,6 @@ repos: - id: no-commit-to-branch args: [--branch, develop, --branch, master, --branch, main, --pattern, release/.*] - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 22.3.0 hooks: - id: black diff --git a/README.md b/README.md index 90ece90..82c2500 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Test data and reusable non-specific test code ## fixtures -Fixtures allow us to reuse similiar code between many tests. +Fixtures allow us to reuse similar code between many tests. Read all about it [here](https://docs.pytest.org/en/latest/fixture.html) ### Indexd diff --git a/cdisutilstest/code/dictionary_submission.py b/cdisutilstest/code/dictionary_submission.py index 825c4cd..0619e10 100644 --- a/cdisutilstest/code/dictionary_submission.py +++ b/cdisutilstest/code/dictionary_submission.py @@ -77,7 +77,6 @@ def project_creation_endpoint_helper( def put_entity_creation_valid_helper( client, pg_driver, submitter, program, project, data_dir, schema_path ): - put_program_project(client, program, project, data_dir, auth=submitter) entities = os.listdir(schema_path) diff --git a/cdisutilstest/code/indexd_fixture.py b/cdisutilstest/code/indexd_fixture.py index b5167f4..c6f8920 100644 --- a/cdisutilstest/code/indexd_fixture.py +++ b/cdisutilstest/code/indexd_fixture.py @@ -115,6 +115,7 @@ def create_random_index(index_client, did=None, version=None, hashes=None): urls_metadata={ "s3://super-safe.com/{}_warning_huge_file.svs".format(did): {"a": "b"} }, + description="a description", ) return doc @@ -153,6 +154,7 @@ def create_random_index_version(index_client, did, version_did=None, version=Non data["urls_metadata"] = { "s3://super-safe.com/{}_warning_huge_file.svs".format(did): {"a": "b"} } + data["description"] = "a description" if version: data["version"] = version diff --git a/setup.py b/setup.py index c96be33..72e99cc 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="cdisutilstest", - version="0.2.4", + version="0.3.0", description="Collection of test data and tools", license="Apache", packages=find_packages(),