Skip to content

Commit a02d580

Browse files
committed
fix author in geant4 workflow test
1 parent c3529de commit a02d580

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/dream/geant4_reduction_test.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import scipp as sc
99
import scipp.testing
1010
import scippnexus as snx
11-
from scippneutron.io.cif import Author
11+
from scippneutron import metadata
1212

1313
import ess.dream.data # noqa: F401
1414
from ess import dream, powder
@@ -72,8 +72,11 @@
7272
CaveMonitorPosition: sc.vector([0.0, 0.0, -4220.0], unit='mm'),
7373
CIFAuthors: CIFAuthors(
7474
[
75-
Author(
76-
name="Jane Doe", email="[email protected]", orcid="0000-0000-0000-0001"
75+
metadata.Person(
76+
name="Jane Doe",
77+
78+
orcid_id="0000-0000-0000-0001",
79+
corresponding=True,
7780
),
7881
]
7982
),
@@ -229,7 +232,10 @@ def _assert_contains_source_info(cif_content: str) -> None:
229232
def _assert_contains_author_info(cif_content: str) -> None:
230233
assert "audit_contact_author.name 'Jane Doe'" in cif_content
231234
assert 'audit_contact_author.email [email protected]' in cif_content
232-
assert 'audit_contact_author.id_orcid 0000-0000-0000-0001' in cif_content
235+
assert (
236+
'audit_contact_author.id_orcid https://orcid.org/0000-0000-0000-0001'
237+
in cif_content
238+
)
233239

234240

235241
def _assert_contains_beamline_info(cif_content: str) -> None:

0 commit comments

Comments
 (0)