-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(metadata): rename contact to author
Renamed contact to author since unlike REST APIs a workflow is most likely developed by several individuals or organizations. Also added the option to have multiple authors for a workflow.
- Loading branch information
1 parent
d72b3a4
commit cb32a7a
Showing
2 changed files
with
33 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from queenbee.schema.metadata import MetaData | ||
|
||
single_author = { | ||
'description': 'test metadata', | ||
'author': { | ||
'name': 'John Dao', | ||
'email': '[email protected]' | ||
} | ||
} | ||
|
||
multi_authors = { | ||
'description': 'test metadata', | ||
'author': [ | ||
{'name': 'John Smith', 'email': '[email protected]'}, | ||
{'name': 'Jane Smith', 'email': '[email protected]'}, | ||
] | ||
} | ||
|
||
|
||
def test_load_single_author(): | ||
MetaData.parse_obj(single_author) | ||
|
||
|
||
def test_load_multi_authors(): | ||
MetaData.parse_obj(multi_authors) |