Skip to content
Snippets Groups Projects
Commit 0bd83808 authored by vuillaut's avatar vuillaut
Browse files

unit test

parent 8747a2f4
No related branches found
No related tags found
1 merge request!48simplify record representation, prettier decription in print_info and method to write zenodo json
Pipeline #138017 failed
......@@ -177,3 +177,10 @@ def test_record(test_get_record_4923992):
def test_get_record_sandbox():
record = get_record(520735, sandbox=True)
assert record.data['doi'] == '10.5072/zenodo.520735'
def test_write_record_zenodo(test_get_record_4923992, tmpdir):
record = test_get_record_4923992
record.write_zenodo(filename=tmpdir/'.zenodo.json')
with open(tmpdir/'.zenodo.json') as file:
json_dict = json.load(file)
assert json_dict['conceptdoi'] == '10.5281/zenodo.3572654'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment