File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,22 @@ def test_loadGraph(self):
2525 # test saving a graph
2626 def test_saveGraph (self ):
2727 g = self .g
28- graphMl = "a_fish_named_wanda.xml"
28+ graphMl = "/tmp/ a_fish_named_wanda.xml"
2929 # drop the existing content of the graph
3030 g .V ().drop ().iterate ()
3131 g .addV ("Fish" ).property ("name" ,"Wanda" ).iterate ()
32- g .io (self . volume . remote ( graphMl ) ).write ().iterate ()
32+ g .io (graphMl ).write ().iterate ()
3333 if self .debug :
34- print (f"wrote graph to { self .volume .remote (graphMl )} " )
34+ print (f"wrote graph to { graphMl } " )
35+ g .V ().drop ().iterate ()
36+ g .io (graphMl ).read ().iterate ()
37+ vCount = g .V ().count ().next ()
38+ debug = self .debug
39+ debug = True
40+ if debug :
41+ print (f"{ graphMl } has { vCount } vertices" )
42+ assert vCount == 1
3543 # check that the graphml file exists
36- assert os .path .isfile (self .volume .local (graphMl ))
44+ # unfortunately this doesn't work as of 2023-06-11
45+ # in the github CI
46+ #assert os.path.isfile(self.volume.local(graphMl))
You can’t perform that action at this time.
0 commit comments