KDD-OpenSource / 32de-python

Server component of graph exploration tool with meta-paths

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError in similarity test

Baschdl opened this issue · comments

________________ SimilarityTestCase.test_similarity_calculation ________________

self = <tests.similarity_score_test.SimilarityTestCase testMethod=test_similarity_calculation>

    def test_similarity_calculation(self):
        test_paths = \
            [MetaPathRating(MetaPath(nodes=[1, 2], edges=[3]), 3, 1), MetaPathRating(MetaPath(nodes=[1, 2, 1], edges=[3, 4]), 1, 3),
             MetaPathRating(MetaPath(nodes=[1, 3, 2], edges=[1, 1]), 5, 2), MetaPathRating(MetaPath(nodes=[1, 3, 2], edges=[1, 1]), 4, 7),
             MetaPathRating(MetaPath(nodes=[1, 3, 2], edges=[1, 1]), 6, 3)]
    
>       similarity = SimilarityScore.calculate_similarity(test_paths)
E       TypeError: calculate_similarity() missing 1 required positional argument: 'meta_path_ratings'

tests/similarity_score_test.py:18: TypeError

@juliusrueckin That's from your changes, isn't it?