@@ -48,6 +48,7 @@ def test_allpairs(self):
4848 AllPairs .run (
4949 nodetypes = str (TEST_DIR / 'input' / 'sample-in-nodetypes.txt' ),
5050 network = str (TEST_DIR / 'input' / 'sample-in-net.txt' ),
51+ directed_flag = str (TEST_DIR / 'input' / 'directed-flag-false.txt' ),
5152 output_file = str (out_path )
5253 )
5354 assert out_path .exists ()
@@ -70,6 +71,7 @@ def test_allpairs_singularity(self):
7071 AllPairs .run (
7172 nodetypes = str (TEST_DIR / 'input' / 'sample-in-nodetypes.txt' ),
7273 network = str (TEST_DIR / 'input' / 'sample-in-net.txt' ),
74+ directed_flag = str (TEST_DIR / 'input' / 'directed-flag-false.txt' ),
7375 output_file = str (out_path ),
7476 container_framework = "singularity" )
7577 assert out_path .exists ()
@@ -83,6 +85,7 @@ def test_allpairs_singularity_unpacked(self):
8385 AllPairs .run (
8486 nodetypes = str (TEST_DIR / 'input/sample-in-nodetypes.txt' ),
8587 network = str (TEST_DIR / 'input/sample-in-net.txt' ),
88+ directed_flag = str (TEST_DIR / 'input' / 'directed-flag-false.txt' ),
8689 output_file = str (out_path ),
8790 container_framework = "singularity" )
8891 config .config .unpack_singularity = False
@@ -104,6 +107,7 @@ def test_allpairs_correctness(self):
104107 AllPairs .run (
105108 nodetypes = str (TEST_DIR / 'input' / 'correctness-nodetypes.txt' ),
106109 network = str (TEST_DIR / 'input' / 'correctness-network.txt' ),
110+ directed_flag = str (TEST_DIR / 'input' / 'directed-flag-false.txt' ),
107111 output_file = str (OUT_DIR / 'correctness-out.txt' )
108112 )
109113
@@ -113,13 +117,11 @@ def test_allpairs_directed(self):
113117 out_path = OUT_DIR / 'directed-out.txt'
114118 out_path .unlink (missing_ok = True )
115119
116- OUT_DIR .joinpath ('directed-flag.txt' ).touch ()
117-
118120 AllPairs .run (
119121 nodetypes = str (TEST_DIR / 'input' / 'directed-nodetypes.txt' ),
120122 network = str (TEST_DIR / 'input' / 'directed-network.txt' ),
123+ directed_flag = str (TEST_DIR / 'input' / 'directed-flag-true.txt' ),
121124 output_file = str (OUT_DIR / 'directed-out.txt' ),
122- directed_flag = str (OUT_DIR / 'directed-flag.txt' )
123125 )
124126
125127 edge_equality_test_util (out_path , EXPECTED_DIR .joinpath ('directed-expected.txt' ))
@@ -137,6 +139,7 @@ def test_allpairs_zero_length(self):
137139 AllPairs .run (
138140 nodetypes = TEST_DIR / 'input' / 'zero-length-nodetypes.txt' ,
139141 network = TEST_DIR / 'input' / 'zero-length-network.txt' ,
142+ directed_flag = str (TEST_DIR / 'input' / 'directed-flag-false.txt' ),
140143 output_file = OUT_DIR / 'zero-length-out.txt'
141144 )
142145
0 commit comments