6565 "https://github.com/Washington-University/HCPpipelines/tree/master/global/templates"
6666)
6767
68+ fsaverage_fbib = """\
69+ @article{Fischl_1999,
70+ \t doi = {10.1002/(sici)1097-0193(1999)8:4<272::aid-hbm10>3.0.co;2-4},
71+ \t url = {https://doi.org/10.1002%2F%28sici%291097-0193%281999%298%3A4%3C272%3A%3Aaid-hbm10%3E3.0.co%3B2-4},
72+ \t year = 1999,
73+ \t publisher = {Wiley},
74+ \t volume = {8},
75+ \t number = {4},
76+ \t pages = {272--284},
77+ \t author = {Bruce Fischl and Martin I. Sereno and Roger B.H. Tootell and Anders M. Dale},
78+ \t title = {High-resolution intersubject averaging and a coordinate system for the cortical surface},
79+ \t journal = {Human Brain Mapping}
80+ }"""
6881
6982@pytest .mark .parametrize (
7083 "template,urls,fbib,lbib" ,
7184 [
7285 ("MNI152NLin2009cAsym" , mni2009_urls , mni2009_fbib , mni2009_lbib ),
7386 ("fsLR" , fslr_urls , fslr_fbib , fslr_lbib ),
74- ("fsaverage" , [], None , None ),
87+ ("fsaverage" , ["https://doi.org/10.1002/(sici)1097-0193(1999)8:4%3C272::aid-hbm10%3E3.0.co;2-4" ], fsaverage_fbib , None ),
7588 ],
7689)
7790def test_citations (tmp_path , template , urls , fbib , lbib ):
@@ -80,7 +93,7 @@ def test_citations(tmp_path, template, urls, fbib, lbib):
8093 bibs = api .get_citations (template , bibtex = True )
8194 if bibs :
8295 assert "" .join (bibs [0 ]) == fbib
83- assert "" .join (bibs [- 1 ]) == lbib
96+ assert len ( bibs ) == 1 if lbib is None else "" .join (bibs [- 1 ]) == lbib
8497 else :
8598 # no citations currently
86- assert template == "fsaverage"
99+ assert False
0 commit comments