Beispiel #1
0
        def get_collaborations_from_record(self):
            """
            Check that it's fetching collaborations
            """
            from invenio.legacy.bibrank.selfcites_indexer import get_collaborations_from_record

            tags = get_author_tags_mock()
            collaborations = get_collaborations_from_record(2, tags)
            self.assertEqual(collaborations, ['1'])
Beispiel #2
0
        def get_collaborations_from_record(self):
            """
            Check that it's fetching collaborations
            """
            from invenio.legacy.bibrank.selfcites_indexer import get_collaborations_from_record

            tags = get_author_tags_mock()
            collaborations = get_collaborations_from_record(2, tags)
            self.assertEqual(collaborations, ['1'])
 def test_get_collaborations_from_record(self):
     from invenio.legacy.bibrank.selfcites_indexer import get_collaborations_from_record
     from invenio.legacy.bibrank.selfcites_indexer import get_authors_tags
     tags = get_authors_tags()
     self.assert_(not get_collaborations_from_record(1, tags))
Beispiel #4
0
 def test_get_collaborations_from_record(self):
     from invenio.legacy.bibrank.selfcites_indexer import get_collaborations_from_record
     from invenio.legacy.bibrank.selfcites_indexer import get_authors_tags
     tags = get_authors_tags()
     self.assert_(not get_collaborations_from_record(1, tags))