1+ import sys
2+ import os
3+
4+ sys .path .append (os .path .join (os .path .dirname (__file__ ), ".." ))
15import pytest
26
37from processpiper import ProcessMap , EventType , ActivityType , GatewayType
812
913def test_sample01 ():
1014 with ProcessMap (
11- "debug01" , colour_theme = "BLUEMOUNTAIN" , width = 8192
15+ "debug01" , colour_theme = "BLUEMOUNTAIN" , width = 8192
1216 ) as my_process_map :
1317 with my_process_map .add_lane ("customer" ) as lane1 :
1418 start = lane1 .add_element ("start" , EventType .START )
@@ -74,7 +78,7 @@ def test_sample01():
7478
7579def test_sample02 ():
7680 with ProcessMap (
77- "debug" , colour_theme = "BLUEMOUNTAIN" , width = 10000
81+ "debug" , colour_theme = "BLUEMOUNTAIN" , width = 10000
7882 ) as my_process_map :
7983 with my_process_map .add_pool ("Pool" ) as pool1 :
8084 with pool1 .add_lane ("lane1" ) as lane1 :
@@ -114,7 +118,7 @@ def test_sample02():
114118
115119def test_sample03 ():
116120 with ProcessMap (
117- "Break Glass Process" , colour_theme = "BLUEMOUNTAIN"
121+ "Break Glass Process" , colour_theme = "BLUEMOUNTAIN"
118122 ) as my_process_map :
119123 with my_process_map .add_pool ("Organisation" ) as pool1 :
120124 with pool1 .add_lane ("ProductA User" ) as lane1 :
@@ -193,7 +197,7 @@ def test_sample03():
193197
194198def test_sample04 ():
195199 with ProcessMap (
196- "Break Glass Process" , colour_theme = "BLUEMOUNTAIN" , painter_type = "SVG"
200+ "Break Glass Process" , colour_theme = "BLUEMOUNTAIN" , painter_type = "SVG"
197201 ) as my_process_map :
198202 with my_process_map .add_pool ("Organisation" ) as pool1 :
199203 with pool1 .add_lane ("ProductA User" ) as lane1 :
@@ -273,7 +277,9 @@ def test_sample04():
273277def test_sample05 ():
274278 with pytest .raises (TooManyConnectionsException ):
275279 with ProcessMap (
276- "Test Max Connection Process" , colour_theme = "BLUEMOUNTAIN" , painter_type = "SVG"
280+ "Test Max Connection Process" ,
281+ colour_theme = "BLUEMOUNTAIN" ,
282+ painter_type = "SVG" ,
277283 ) as my_process_map :
278284 with my_process_map .add_lane ("Test Lane" ) as lane1 :
279285 start = lane1 .add_element ("start" , EventType .START )
@@ -303,7 +309,9 @@ def test_sample05():
303309def test_sample06 ():
304310 with pytest .raises (TooManyConnectionsException ):
305311 with ProcessMap (
306- "Test Max Connection Process" , colour_theme = "BLUEMOUNTAIN" , painter_type = "SVG"
312+ "Test Max Connection Process" ,
313+ colour_theme = "BLUEMOUNTAIN" ,
314+ painter_type = "SVG" ,
307315 ) as my_process_map :
308316 with my_process_map .add_lane ("Test Lane" ) as lane1 :
309317 start = lane1 .add_element ("start" , EventType .START )
@@ -343,7 +351,7 @@ def test_sample06():
343351
344352def test_sample07 ():
345353 with ProcessMap (
346- "Product Feature Interface" , colour_theme = "BLUEMOUNTAIN"
354+ "Product Feature Interface" , colour_theme = "BLUEMOUNTAIN"
347355 ) as my_process_map :
348356 with my_process_map .add_lane ("system" ) as lane_system :
349357 node_start = lane_system .add_element ("start" , EventType .START )
@@ -415,7 +423,7 @@ def test_sample07():
415423 g3 .connect (node_Update_Figma_Design_ , "" )
416424
417425 with pool_Product_How .add_lane (
418- "Brokerage Squad; UXD"
426+ "Brokerage Squad; UXD"
419427 ) as lane_Product_How_Brokerage_Squad__UXD :
420428 node_Work_with_Domains_SL = lane_Product_How_Brokerage_Squad__UXD .add_element (
421429 "Work with Domains SL (Bob\n Taiani, Chris Coale) to\n develop features UI stories" ,
@@ -437,7 +445,7 @@ def test_sample07():
437445 g4 .connect (node_Create_feature_test_ , "" )
438446
439447 with pool_Product_How .add_lane (
440- "Brokerage Squad"
448+ "Brokerage Squad"
441449 ) as lane_Product_How_Brokerage_Squad :
442450 node_Implement_feature_UI = (
443451 lane_Product_How_Brokerage_Squad .add_element (
@@ -588,7 +596,7 @@ def test_sample10():
588596
589597def test_sample11 ():
590598 with ProcessMap (
591- "Are we living in simulation?" , colour_theme = "TEALWATERS"
599+ "Are we living in simulation?" , colour_theme = "TEALWATERS"
592600 ) as process_map :
593601 with process_map .add_pool ("The World" ) as pool :
594602 with pool .add_lane ("You" ) as you :
0 commit comments