summaryrefslogtreecommitdiff
path: root/taskflow/tests/unit/patterns/test_linear_flow.py
Commit message (Collapse)AuthorAgeFilesLines
* Quote string representationsMichael Johnson2022-06-101-2/+2
| | | | | | | | networkx 2.8.3 will raise errors if certain characters, such as a colon, in the node names and the string is not quoted. This patch double quotes flow, node, and task string representations to make sure there are not issues with these characters occuring in the names. Story: 2010083 Change-Id: Ib0941cddf14dde5d6b9f97fe0224d6e6f3975226
* For taskflow patterns don't show taskflow.patterns prefixJoshua Harlow2016-01-051-6/+13
| | | | | | | | | Showing the full name in flow __str__() isn't expecially helpful and clutters up graphviz usage and similar so if a taskflow built-in pattern is stringified just use the short name (that does not start with taskflow.patterns instead of the full long name). Change-Id: Icd8c26eab1e19d6ecf9c4e8e82e6d6902ce5b6ea
* Fix order of assertEqual for unit.patternslin-hua-cheng2015-10-171-37/+34
| | | | | | | First parameter should be the expected value. Change-Id: I06140e4be87663136483d1e7be3bc471fbbbf92b Partial-Bug: #1357117
* Use graphs as the underlying structure of patternsJoshua Harlow2015-09-181-1/+1
| | | | | | | | | This unifies all the patterns to be graph based so that they are more uniform and there underlying constraints are more easy to understand (taskflow basically processes graphs). Change-Id: Ib2ab07c1c87165cf40a06508128010887f658391
* iter_nodes method added to flowsTimofey Durakov2015-08-281-0/+21
| | | | | | | New method allows to iterate over flow node and get access to node metadata during iteration. Change-Id: Ib0fc77f0597961602fbc3b49ba09e4df815d8230
* Update Flow::__str__Manish Godara2015-02-171-2/+2
| | | | | | | The current implementation seems a little cryptic so updating it to clearly indicate the atom count. Change-Id: I4f97e458a4b80e33b3d6348a3ef632398586ed47
* Relax the linear flow symbol constraintsJoshua Harlow2014-09-081-19/+0
| | | | | | | | | | | | In order to make it possible to have a symbol tree we need to relax and remove the constraints that are being imposed by the linear constraints and later move those constraint checks and validations into the engines compilation stage. Part of blueprint taskflow-improved-scoping Change-Id: I6efdc821ff991e83572d89f56be5c678d007f9f8
* Enabled hacking checks H305 and H307Christian Berendt2014-07-171-1/+0
| | | | | | | * H305 imports not grouped correctly * H307 like imports should be grouped together Change-Id: If1dd9c89f65ede6959865a885777cb08c263eca0
* Adjust the exception hierachyJoshua Harlow2014-03-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Group the exceptions into the following groups * Storage * Jobs * Execution * Other (wrapped failure here) This grouping makes it easier to understand where one type of exception should be used vs using another type of exception. Backwards incompatible changes: * StorageError -> StorageFailure * AlreadyExists -> Duplicate * WrappedFailure now inherits from Exception and not directly from TaskFlowException since it wraps arbitrary other exceptions and is not specific to taskflow. Cleanups: * JobNotFound -> NotFound * EmptyFlow -> Empty * JobAlreadyExists -> AlreadyExists * InvariantViolation (X) * ConnectionFailure (X) Change-Id: I0e1e81b513fbbc7adb8bfaa1244993e345ab70d3
* Linear flow: mark links and rework unit testsIvan A. Melnikov2014-03-211-0/+140
- add 'invariant': True to all links produced by linear flow; - write new unit tests for basic functionality of linear flow pattern; - remove some simple now-redundant unit tests from test_flow_dependencies. Change-Id: I1f4fa8a1dfc61485555a10e8d0629a67aab1997f