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

Commit 6b8fe4f7 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Rename RecordPubli.is_institute_defined to is_affiliation_for_all.

parent 2e792df6
......@@ -269,17 +269,8 @@ class RecordPubli(Record):
return True
def is_authors(self):
"""C{True} when authors are defined.
@rtype: bool
@return:
"""
return u"100" in self or u"700" in self
def is_institute_defined(self):
"""C{True} when institutes are defined for all authors.
def is_affiliation_for_all(self):
"""C{True} when affiliation are defined for all authors.
@rtype: bool
@return:
......@@ -306,6 +297,15 @@ class RecordPubli(Record):
return False
def is_authors(self):
"""C{True} when authors are defined.
@rtype: bool
@return:
"""
return u"100" in self or u"700" in self
def is_published(self):
"""Return true is the record is published.
......
......@@ -68,10 +68,10 @@ def test_first_institutes(record, recordfix):
def test_institutes(record, recordfix):
assert record.institutes() == []
assert record.is_institute_defined() == False
assert record.is_affiliation_for_all() == False
assert recordfix.institutes() == ["Marseille, CPPM"]
assert recordfix.is_institute_defined() == True
assert recordfix.is_affiliation_for_all() == True
def test_submitted(record, recordfix):
......
......@@ -65,7 +65,7 @@ def test_id(record):
def test_institutes(record):
assert record.is_affiliations() == True
assert record.is_institute_defined() == True
assert record.is_affiliation_for_all() == True
institutes = record.institutes()
......
......@@ -65,7 +65,7 @@ def test_institutes(record):
assert institutes[44] == "MIT"
assert institutes[-1] == "Zurich U."
assert record.is_institute_defined() == True
assert record.is_affiliation_for_all() == True
def test_is_article(record):
......
......@@ -84,7 +84,7 @@ def test_id(record):
def test_institutes(record):
assert record.institutes() == []
assert record.is_institute_defined() == False
assert record.is_affiliation_for_all() == False
def test_is_proceeding(record):
assert isinstance(record, RecordConf)
......
......@@ -88,7 +88,7 @@ def test_institutes(record):
institutes = record.institutes()
assert record.institutes() == []
assert record.is_institute_defined() == False
assert record.is_affiliation_for_all() == False
def test_is_proceeding(record):
......
......@@ -84,7 +84,7 @@ def test_institutes(record):
institutes = record.institutes()
assert record.institutes() == []
assert record.is_institute_defined() == False
assert record.is_affiliation_for_all() == False
def test_is_proceeding(record):
......
......@@ -58,7 +58,7 @@ def test_institutes(record):
assert institutes[0] == "Marseille, CPPM"
assert institutes[1] == "Shandong U."
assert record.is_institute_defined() == True
assert record.is_affiliation_for_all() == True
def test_is_phd(record):
......
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