forked from SCOAP3/scoap3-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scoap3_unit_tests.py
79 lines (56 loc) · 2.11 KB
/
scoap3_unit_tests.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
## -*- mode: python; coding: utf-8; -*-
##
## This file is part of Invenio.
## Copyright (C) 2010, 2011, 2012 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your option) any later version.
##
## Invenio is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Invenio; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
"""Testing module for SCOAP3 harvests"""
import unittest
from invenio.testutils import make_test_suite, run_test_suite
## Tests need to work for harvesting Elsevier and Springer
class TestArxivIds(unittest.TestCase):
"""Test arXiv IDs"""
def test_arxiv_ids_are_extracted(self):
pass
def test_record_has_correctly_added_arxiv_id(self):
pass
class TestMathMl(unittest.TestCase):
"""Test MathML support."""
def test_mathml_has_namespace_correctly_changed(self):
pass
def test_mathml_is_added_to_title(self):
pass
def test_mathml_is_added_to_abstract(self):
pass
def test_mathml_is_added_to_keywords(self):
pass
class TestPackages(unittest.TestCase):
"""Test packages harvest, extraction, normalization."""
def test_packages_were_harvested(self):
pass
def test_package_was_extracted(self):
pass
def test_package_was_normalized(self):
pass
class TestRecordCreation(unittest.TestCase):
"""Test the creation of bibrecord."""
def test_record_created(self):
pass
TEST_SUITE = make_test_suite(TestArxivIds,
TestMathMl,
TestPackages,
TestRecordCreation)
if __name__ == "__main__":
run_test_suite(TEST_SUITE)