|
13 | 13 | RemoteEdgeAddition,
|
14 | 14 | )
|
15 | 15 |
|
| 16 | + |
16 | 17 | def make_props():
|
17 | 18 | current_datetime = datetime.now(timezone.utc)
|
18 | 19 | naive_datetime = datetime.now()
|
@@ -116,12 +117,15 @@ def test_add_nodes():
|
116 | 117 | ben = g.node("ben")
|
117 | 118 | hamza = g.node("hamza")
|
118 | 119 | lucas = g.node("lucas")
|
119 |
| - check_arr(ben.properties.temporal.get("prop_float").values(), [ |
120 |
| - 2.0, |
121 |
| - 3.0, |
122 |
| - 2.0, |
123 |
| - 3.0, |
124 |
| - ]) |
| 120 | + check_arr( |
| 121 | + ben.properties.temporal.get("prop_float").values(), |
| 122 | + [ |
| 123 | + 2.0, |
| 124 | + 3.0, |
| 125 | + 2.0, |
| 126 | + 3.0, |
| 127 | + ], |
| 128 | + ) |
125 | 129 | check_arr(ben.history(), [1, 2, 3, 4, 5, 6])
|
126 | 130 | assert ben.node_type == "person"
|
127 | 131 | check_arr(hamza.history(), [1, 2])
|
@@ -176,14 +180,17 @@ def test_add_edges():
|
176 | 180 | ben_hammza = g.edge("ben", "hamza")
|
177 | 181 | hamza_lucas = g.edge("hamza", "lucas")
|
178 | 182 | lucas_hamza = g.edge("lucas", "hamza")
|
179 |
| - check_arr( ben_hammza.properties.temporal.get("prop_float").values() , [ |
180 |
| - 2.0, |
181 |
| - 3.0, |
182 |
| - 2.0, |
183 |
| - 3.0, |
184 |
| - ]) |
185 |
| - check_arr( ben_hammza.history() , [1, 2, 3, 4, 5, 6]) |
| 183 | + check_arr( |
| 184 | + ben_hammza.properties.temporal.get("prop_float").values(), |
| 185 | + [ |
| 186 | + 2.0, |
| 187 | + 3.0, |
| 188 | + 2.0, |
| 189 | + 3.0, |
| 190 | + ], |
| 191 | + ) |
| 192 | + check_arr(ben_hammza.history(), [1, 2, 3, 4, 5, 6]) |
186 | 193 | assert ben_hammza.layer_names == ["_default", "test"]
|
187 |
| - check_arr( hamza_lucas.history() , [1, 2]) |
| 194 | + check_arr(hamza_lucas.history(), [1, 2]) |
188 | 195 | assert hamza_lucas.layer_names == ["_default"]
|
189 | 196 | helper_test_props(lucas_hamza.layer("_default"), lucas_props)
|
0 commit comments