Skip to content

Commit 9916a90

Browse files
Update test_rdm.py
1 parent 7d6afcf commit 9916a90

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

tests/test_rdm.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ def test_datacite_rdm_conversion(full_datacite43_record, full_rdm_record):
1717
def test_datacite_rdm_create_edit(full_datacite43_record):
1818
env_token = os.environ.get("CALTECHDATA_TOKEN")
1919
doi = caltechdata_write(
20-
full_datacite43_record, schema="43", production=False, publish=True, token=env_token
20+
full_datacite43_record,
21+
schema="43",
22+
production=False,
23+
publish=True,
24+
token=env_token,
2125
)
2226

2327
assert doi.startswith("10.33569")
@@ -28,20 +32,27 @@ def test_datacite_rdm_create_edit(full_datacite43_record):
2832
production=False,
2933
files=["codemeta.json"],
3034
publish=True,
31-
token=env_token
35+
token=env_token,
3236
)
3337

3438
assert doi.startswith("10.33569")
3539

3640
# If we don't publish, don't get back a DOI
37-
idv = caltechdata_write(full_datacite43_record, schema="43", production=False, token=env_token)
41+
idv = caltechdata_write(
42+
full_datacite43_record, schema="43", production=False, token=env_token
43+
)
3844

3945
assert idv.startswith("10.33569") == False
4046

4147
full_datacite43_record["publisher"] = "Edited"
4248

4349
doi = caltechdata_edit(
44-
idv, full_datacite43_record, schema="43", production=False, publish=True, token=env_token
50+
idv,
51+
full_datacite43_record,
52+
schema="43",
53+
production=False,
54+
publish=True,
55+
token=env_token,
4556
)
4657

4758
assert doi.startswith("10.33569")
@@ -60,7 +71,7 @@ def test_datacite_rdm_create_edit(full_datacite43_record):
6071
schema="43",
6172
production=False,
6273
publish=True,
63-
token=env_token
74+
token=env_token,
6475
)
6576

6677
assert new_doi != doi

0 commit comments

Comments
 (0)