(self)
| 279 | bootsteps.IGNORE_ERRORS = prev |
| 280 | |
| 281 | def test_connect_with(self): |
| 282 | |
| 283 | class b1s1(bootsteps.Step): |
| 284 | pass |
| 285 | |
| 286 | class b1s2(bootsteps.Step): |
| 287 | last = True |
| 288 | |
| 289 | class b2s1(bootsteps.Step): |
| 290 | pass |
| 291 | |
| 292 | class b2s2(bootsteps.Step): |
| 293 | last = True |
| 294 | |
| 295 | b1 = self.Blueprint([b1s1, b1s2]) |
| 296 | b2 = self.Blueprint([b2s1, b2s2]) |
| 297 | b1.apply(Mock()) |
| 298 | b2.apply(Mock()) |
| 299 | b1.connect_with(b2) |
| 300 | |
| 301 | assert b1s1 in b1.graph |
| 302 | assert b2s1 in b1.graph |
| 303 | assert b2s2 in b1.graph |
| 304 | |
| 305 | assert repr(b1s1) |
| 306 | assert str(b1s1) |
| 307 | |
| 308 | def test_topsort_raises_KeyError(self): |
| 309 |
nothing calls this directly
no test coverage detected