File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -236,8 +236,8 @@ def _make_graph(self):
236236 for name in self .nodes_to_show :
237237 foreign_attributes = set (
238238 attr for p in self .in_edges (name , data = True ) for attr in p [2 ]['attr_map' ] if p [2 ]['primary' ])
239- self .node [name ]['distinguished' ] = (
240- 'primary_key' in self .node [name ] and foreign_attributes < self .node [name ]['primary_key' ])
239+ self .nodes [name ]['distinguished' ] = (
240+ 'primary_key' in self .nodes [name ] and foreign_attributes < self .nodes [name ]['primary_key' ])
241241 # include aliased nodes that are sandwiched between two displayed nodes
242242 gaps = set (nx .algorithms .boundary .node_boundary (self , self .nodes_to_show )).intersection (
243243 nx .algorithms .boundary .node_boundary (nx .DiGraph (self ).reverse (), self .nodes_to_show ))
@@ -307,7 +307,7 @@ def make_dot(self):
307307 props = graph .get_edge_data (src , dest )
308308 edge .set_color ('#00000040' )
309309 edge .set_style ('solid' if props ['primary' ] else 'dashed' )
310- master_part = graph .node [dest ]['node_type' ] is Part and dest .startswith (src + '.' )
310+ master_part = graph .nodes [dest ]['node_type' ] is Part and dest .startswith (src + '.' )
311311 edge .set_weight (3 if master_part else 1 )
312312 edge .set_arrowhead ('none' )
313313 edge .set_penwidth (.75 if props ['multi' ] else 2 )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ pyparsing
44ipython
55pandas
66tqdm
7- networkx < 2.4
7+ networkx
88pydot
99minio
1010matplotlib
Original file line number Diff line number Diff line change 1010
1111
1212def test_reserve_job ():
13- # clean jobs table
14- schema .schema .jobs .delete ()
1513
14+ schema .schema .jobs .delete ()
1615 assert_true (subjects )
1716 table_name = 'fake_table'
17+
1818 # reserve jobs
1919 for key in subjects .fetch ('KEY' ):
2020 assert_true (schema .schema .jobs .reserve (table_name , key ), 'failed to reserve a job' )
You can’t perform that action at this time.
0 commit comments