Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(PXP-6421): Add description for indexd records #29

Merged
merged 1 commit into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.pyc
*.egg-info
.pytest_cache/
.idea
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion cdisutilstest/code/dictionary_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions cdisutilstest/code/indexd_fixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down