Skip to content

Commit fc12288

Browse files
authored
Merge pull request #29 from uc-cdis/feat/PXP-6421-Add-description-to-indexd
feat(PXP-6421): Add description for indexd records
2 parents c26b12e + 732d987 commit fc12288

6 files changed

+6
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.pyc
22
*.egg-info
33
.pytest_cache/
4+
.idea

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ repos:
1313
- id: no-commit-to-branch
1414
args: [--branch, develop, --branch, master, --branch, main, --pattern, release/.*]
1515
- repo: https://github.com/psf/black
16-
rev: 20.8b1
16+
rev: 22.3.0
1717
hooks:
1818
- id: black

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Test data and reusable non-specific test code
44

55
## fixtures
66

7-
Fixtures allow us to reuse similiar code between many tests.
7+
Fixtures allow us to reuse similar code between many tests.
88
Read all about it [here](https://docs.pytest.org/en/latest/fixture.html)
99

1010
### Indexd

cdisutilstest/code/dictionary_submission.py

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def project_creation_endpoint_helper(
7777
def put_entity_creation_valid_helper(
7878
client, pg_driver, submitter, program, project, data_dir, schema_path
7979
):
80-
8180
put_program_project(client, program, project, data_dir, auth=submitter)
8281

8382
entities = os.listdir(schema_path)

cdisutilstest/code/indexd_fixture.py

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def create_random_index(index_client, did=None, version=None, hashes=None):
115115
urls_metadata={
116116
"s3://super-safe.com/{}_warning_huge_file.svs".format(did): {"a": "b"}
117117
},
118+
description="a description",
118119
)
119120

120121
return doc
@@ -153,6 +154,7 @@ def create_random_index_version(index_client, did, version_did=None, version=Non
153154
data["urls_metadata"] = {
154155
"s3://super-safe.com/{}_warning_huge_file.svs".format(did): {"a": "b"}
155156
}
157+
data["description"] = "a description"
156158

157159
if version:
158160
data["version"] = version

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="cdisutilstest",
5-
version="0.2.4",
5+
version="0.3.0",
66
description="Collection of test data and tools",
77
license="Apache",
88
packages=find_packages(),

0 commit comments

Comments
 (0)