Commit 13b0f83e authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish tests/scan.

parent a943f7cb
......@@ -19,7 +19,7 @@ def harvester_messages():
return messages()
def test_lhcb(harvester_messages):
def test_lhcb_acl(harvester_messages):
"""Harvest LHCb article for a given year.
This test is useful to:
......@@ -59,10 +59,17 @@ def test_lhcb(harvester_messages):
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
def test_atlas(harvester_messages):
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
def test_atlas_acl(harvester_messages):
"""Harvest ATLAs article for a given year.
This test is useful to:
......@@ -102,4 +109,10 @@ def test_atlas(harvester_messages):
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
......@@ -19,7 +19,7 @@ def harvester_messages():
return messages()
def test_lhcb_ap2(harvester_messages):
def test_lhcb_note_ap(harvester_messages):
"""Harvest LHCb note for a given year.
This test is useful to:
......@@ -59,4 +59,10 @@ def test_lhcb_ap2(harvester_messages):
# Number of talk cannot be check since it evolve within a year
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
......@@ -58,4 +58,10 @@ def test_lhcb_pre(harvester_messages):
# Number of talk cannot be check since it evolve within a year
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
......@@ -58,4 +58,10 @@ def test_lhcb_acti(harvester_messages):
# Number of proceeding cannot be check since it evolve within a year
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
......@@ -19,7 +19,7 @@ def harvester_messages():
return messages()
def test_lhcb_ap(harvester_messages):
def test_lhcb_report_ap(harvester_messages):
"""Harvest LHCb report for a given year.
This test is useful to:
......@@ -58,4 +58,10 @@ def test_lhcb_ap(harvester_messages):
# Number of talk cannot be check since it evolve within a year
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
......@@ -58,4 +58,11 @@ def test_lhcb_com(harvester_messages):
# Number of talk cannot be check since it evolve within a year
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
......@@ -59,4 +59,10 @@ def test_lhcb_acl(harvester_messages):
# Only test that there are no unexpected messages
msgs = set([el.txt for el in tool.logs])
assert msgs.issubset(harvester_messages)
success = msgs.issubset(harvester_messages)
if not success:
from pprint import pprint
pprint(harvester_messages.difference(msgs))
assert success
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