2
2
3
3
import pandas as pd
4
4
5
- from asreviewcontrib .datatools .snowballing import backward_snowballing
6
- from asreviewcontrib .datatools .snowballing import forward_snowballing
7
- from asreviewcontrib .datatools .snowballing import openalex_from_doi
8
- from asreviewcontrib .datatools .snowballing import snowballing
5
+ from asreviewcontrib .datatools .snowball import backward_snowballing
6
+ from asreviewcontrib .datatools .snowball import forward_snowballing
7
+ from asreviewcontrib .datatools .snowball import openalex_from_doi
8
+ from asreviewcontrib .datatools .snowball import snowball
9
9
10
10
INPUT_DIR = Path (__file__ ).parent / "demo_data"
11
11
@@ -58,7 +58,7 @@ def test_forward_snowballing():
58
58
59
59
def test_openalex_id_forward (tmpdir ):
60
60
out_fp = Path (tmpdir , "forward_all.csv" )
61
- snowballing (
61
+ snowball (
62
62
input_path = INPUT_DIR / "snowballing_openalex.csv" ,
63
63
output_path = out_fp ,
64
64
forward = True ,
@@ -69,7 +69,7 @@ def test_openalex_id_forward(tmpdir):
69
69
assert len (df ) >= 23
70
70
71
71
all_out_fp = Path (tmpdir , "forward_all.csv" )
72
- snowballing (
72
+ snowball (
73
73
input_path = INPUT_DIR / "snowballing_openalex.csv" ,
74
74
output_path = all_out_fp ,
75
75
forward = True ,
@@ -82,7 +82,7 @@ def test_openalex_id_forward(tmpdir):
82
82
83
83
def test_openalex_id_backward (tmpdir ):
84
84
out_fp = Path (tmpdir , "forward_all.csv" )
85
- snowballing (
85
+ snowball (
86
86
input_path = INPUT_DIR / "snowballing_openalex.csv" ,
87
87
output_path = out_fp ,
88
88
forward = False ,
@@ -93,7 +93,7 @@ def test_openalex_id_backward(tmpdir):
93
93
assert len (df ) == 31
94
94
95
95
all_out_fp = Path (tmpdir , "backward_all.csv" )
96
- snowballing (
96
+ snowball (
97
97
input_path = INPUT_DIR / "snowballing_openalex.csv" ,
98
98
output_path = all_out_fp ,
99
99
forward = False ,
@@ -106,7 +106,7 @@ def test_openalex_id_backward(tmpdir):
106
106
107
107
def test_snowballing_from_doi (tmpdir ):
108
108
out_fp = Path (tmpdir , "doi_all.csv" )
109
- snowballing (
109
+ snowball (
110
110
input_path = INPUT_DIR / "snowballing_doi.csv" ,
111
111
output_path = out_fp ,
112
112
forward = False ,
0 commit comments