Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 8982c977 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Rename the method RecordPubli.find_authors_by_institute to by_affiliation.

parent b070f03d
......@@ -508,7 +508,7 @@ class CheckAndFix(object):
app.reg_institute = reg_institute
# find authors of my institute signing the record
s = record.find_authors_by_institute(reg_institute, cmpFct)
s = record.find_authors_by_affiliation(reg_institute, cmpFct)
# nothing found try with the rescue list
if not s and reference:
......
......@@ -175,7 +175,7 @@ class RecordPubli(Record):
return u', '.join(li)
def find_authors_by_institute(self, pattern, cmpFct=None):
def find_authors_by_affiliation(self, pattern, cmpFct=None):
"""Find authors belonging to a given institute(s) defined by a regular
expression.
......
......@@ -58,11 +58,11 @@ def recordfix(record):
return rec
def test_find_authors_by_institute(recordfix):
def test_find_authors_by_affiliation(recordfix):
rex = current.app.reg_institute
assert rex == "Marseille, CPPM|CPPM, Marseille"
authors = recordfix.find_authors_by_institute(rex, family_name_fr)
authors = recordfix.find_authors_by_affiliation(rex, family_name_fr)
assert authors.split(', ') == CPPM_AUTHORS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment