Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
13b0f83e
Commit
13b0f83e
authored
Jul 03, 2017
by
LE GAC Renaud
Browse files
Polish tests/scan.
parent
a943f7cb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
12 deletions
+62
-12
tests/scan/test_Article.py
tests/scan/test_Article.py
+17
-4
tests/scan/test_Note.py
tests/scan/test_Note.py
+8
-2
tests/scan/test_Preprint.py
tests/scan/test_Preprint.py
+7
-1
tests/scan/test_Proceeding.py
tests/scan/test_Proceeding.py
+7
-1
tests/scan/test_Report.py
tests/scan/test_Report.py
+8
-2
tests/scan/test_Talk.py
tests/scan/test_Talk.py
+8
-1
tests/scan/test_Thesis.py
tests/scan/test_Thesis.py
+7
-1
No files found.
tests/scan/test_Article.py
View file @
13b0f83e
...
...
@@ -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
tests/scan/test_Note.py
View file @
13b0f83e
...
...
@@ -19,7 +19,7 @@ def harvester_messages():
return
messages
()
def
test_lhcb_ap
2
(
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
tests/scan/test_Preprint.py
View file @
13b0f83e
...
...
@@ -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
tests/scan/test_Proceeding.py
View file @
13b0f83e
...
...
@@ -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
tests/scan/test_Report.py
View file @
13b0f83e
...
...
@@ -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
tests/scan/test_Talk.py
View file @
13b0f83e
...
...
@@ -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
tests/scan/test_Thesis.py
View file @
13b0f83e
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment