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

Commit 6805216d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update basis/test_12_CheckAndFix_thesis.

parent 1626699b
# -*- coding: utf-8 -*-
"""test_12_CheckAndFix_thesis
* Test CheckAndFix methods for thesis.
......@@ -27,11 +26,11 @@ def svc():
return CheckAndFix()
def test_is_thesis(svc, reccds):
def test_is_thesis_cds_12001(svc, reccds):
assert svc.is_thesis(reccds) is None
def test_submitted(svc, reccds):
def test_submitted_cds_12002(svc, reccds):
assert reccds.these_defense() == "2011"
assert reccds.submitted() == ""
......@@ -40,22 +39,22 @@ def test_submitted(svc, reccds):
assert reccds.submitted() == "2011-11"
def test_format_universities(svc, reccds):
def test_format_universities_cds_12003(svc, reccds):
# Khanji en 2011 (Université de la Méditerrannée)
assert reccds[u"dissertation_note"][u"university"] == \
assert reccds["dissertation_note"]["university"] == \
"Marseille U., Luminy"
svc.format_universities(reccds)
assert reccds[u"dissertation_note"][u"university"] == \
u"Université de la Méditerrannée Aix-Marseille II"
assert reccds["dissertation_note"]["university"] == \
"Université de la Méditerrannée Aix-Marseille II"
# Chen en 2013 (Aix marseille Université)
reccds2 = load_record("cds.cern.ch", 1632177)
assert reccds2[u"dissertation_note"][u"university"] == \
u"Shandong U. & Marseille, CPPM"
assert reccds2["dissertation_note"]["university"] == \
"Shandong U. & Marseille, CPPM"
svc.format_universities(reccds2)
assert reccds2[u"dissertation_note"][u"university"] == \
u"Shandong Université & Aix Marseille Université"
assert reccds2["dissertation_note"]["university"] == \
"Shandong Université & Aix Marseille Université"
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