Skip to content

Commit

Permalink
update changelog; add skipif in parallel tests to check for graphviz
Browse files Browse the repository at this point in the history
  • Loading branch information
aleneum committed Oct 14, 2020
1 parent dc35173 commit a7e1e73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -3,6 +3,7 @@
## 0.8.5 ()

- `AsyncMachine.switch_model_context` is expected to be `async` now for easier integration of async code during model switch.
- Bugfix #478: Initializing a machine with `GraphSupport` threw an exception when initial was set to a nested or parallel state (thanks @nickvazztau)

## 0.8.4 (October 2020)

Expand Down
5 changes: 5 additions & 0 deletions tests/test_parallel.py
Expand Up @@ -8,6 +8,9 @@
from transitions.extensions.nesting import NestedState as State, _build_state_list
from transitions.extensions import HierarchicalGraphMachine
from .test_nesting import TestNestedTransitions as TestNested
from .test_pygraphviz import pgv
from .test_graphviz import pgv as gv
from unittest import skipIf

try:
from unittest.mock import MagicMock
Expand Down Expand Up @@ -193,6 +196,7 @@ def test_model_state_conversion(self):
self.assertEqual(states, _build_state_list(tree, sep))


@skipIf(pgv is None, "pygraphviz is not available")
class TestParallelWithPyGraphviz(TestParallel):

def setUp(self):
Expand All @@ -206,6 +210,7 @@ def __init__(self, *args, **kwargs):
self.machine_cls = PGVMachine


@skipIf(gv is None, "graphviz is not available")
class TestParallelWithGraphviz(TestParallel):

def setUp(self):
Expand Down

0 comments on commit a7e1e73

Please sign in to comment.