-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonschema: fix partOf subfields display
* Closes #626. * Makes the `status` deposit field required to prevent submitting a deposit with no status from the API. Co-Authored-by: Pascal Repond <[email protected]>
- Loading branch information
1 parent
11236f2
commit a0a3e96
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ def test_user_resolver(app, organisation, roles): | |
record = DepositRecord.create( | ||
{'user': { | ||
'$ref': 'https://sonar.ch/api/users/1' | ||
}}, with_bucket=False) | ||
}, | ||
'status': 'in_progress'}, with_bucket=False) | ||
|
||
assert record.replace_refs().get('user')['email'] == '[email protected]' |