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

Commit b09c6dd3 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Propagate new CheckAndFix methods in the test section.

parent fe39f96b
......@@ -51,7 +51,7 @@ def recordfix(record):
svc.authors(rec)
svc.format_authors(rec, format_author_fr)
svc.format_editor(rec)
svc.my_authors(rec, cmpFct=family_name_fr)
svc.get_my_authors(rec, cmpFct=family_name_fr)
svc.submitted(rec)
svc.year(rec)
......
......@@ -20,7 +20,7 @@ Note:
import copy
import pytest
from harvest_tools import format_author_fr
from harvest_tools import family_name_fr, format_author_fr
from invenio_tools import CheckAndFix, load_record
......@@ -36,10 +36,11 @@ def recordfix(record):
svc = CheckAndFix()
svc.authors(rec)
svc.conference(rec)
svc.country(rec)
svc.conference_date(rec)
svc.format_authors(rec, format_author_fr)
svc.format_editor(rec)
svc.my_authors(rec)
svc.get_my_authors(rec, family_name_fr)
svc.submitted(rec)
svc.year(rec)
......
......@@ -39,7 +39,8 @@ def recordfix(record):
svc = CheckAndFix()
svc.authors(rec)
svc.conference(rec)
svc.country(rec)
svc.conference_date(rec)
svc.format_authors(rec, format_author_fr)
svc.format_editor(rec)
svc.submitted(rec)
......@@ -62,7 +63,7 @@ def test_collaboration_exception(recordfix):
def test_my_authors_exception(recordfix):
svc = CheckAndFix()
with pytest.raises(CheckException):
svc.my_authors(recordfix)
svc.get_my_authors(recordfix)
def test_submitted(record, recordfix):
......
......@@ -31,7 +31,8 @@ def recordfix(record):
svc = CheckAndFix()
svc.authors(rec)
svc.conference(rec)
svc.country(rec)
svc.conference_date(rec)
svc.format_authors(rec, format_author_fr)
svc.format_editor(rec)
svc.submitted(rec)
......
......@@ -25,4 +25,4 @@ def test_country_exception():
svc = CheckAndFix()
with pytest.raises(CheckException):
svc.conference(record)
svc.country(record)
......@@ -18,7 +18,7 @@ Note:
import pytest
from harvest_tools import format_author_fr
from harvest_tools import family_name_fr, format_author_fr
from invenio_tools import CheckAndFix, load_record, RecordThesis
......@@ -29,7 +29,7 @@ def record():
svc.authors(rec)
svc.format_authors(rec, format_author_fr)
svc.my_authors(rec)
svc.get_my_authors(rec, family_name_fr)
svc.submitted(rec)
svc.year(rec)
......
......@@ -20,7 +20,7 @@ import copy
import pytest
from harvest_tools import format_author_fr
from harvest_tools import family_name_fr, format_author_fr
from invenio_tools import CheckAndFix, load_record
......@@ -35,7 +35,7 @@ def recordfix(record):
svc = CheckAndFix()
svc.authors(rec)
svc.format_authors(rec, format_author_fr)
svc.my_authors(rec)
svc.get_my_authors(rec, family_name_fr)
svc.submitted(rec)
svc.year(rec)
......
......@@ -18,7 +18,7 @@ Note:
import pytest
from harvest_tools import format_author_fr
from harvest_tools import family_name_fr, format_author_fr
from invenio_tools import CheckAndFix, load_record, RecordThesis
......@@ -29,7 +29,7 @@ def record():
svc.authors(rec)
svc.format_authors(rec, format_author_fr)
svc.my_authors(rec)
svc.get_my_authors(rec, family_name_fr)
svc.submitted(rec)
svc.year(rec)
......
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