Adds basic test for convert command.
This commit is contained in:
@ -185,6 +185,7 @@ def test_node_tuple_dict():
|
||||
assert output[0] == ('foo', 'bar', {'id': 1})
|
||||
assert output[1] == ('foo', 'baz', {'id': 2})
|
||||
|
||||
|
||||
def test_node_lifecycle_natural():
|
||||
func = MagicMock()
|
||||
|
||||
@ -203,6 +204,7 @@ def test_node_lifecycle_natural():
|
||||
ctx.stop()
|
||||
assert all((ctx.started, ctx.stopped)) and not any((ctx.alive, ctx.killed))
|
||||
|
||||
|
||||
def test_node_lifecycle_with_kill():
|
||||
func = MagicMock()
|
||||
|
||||
@ -223,7 +225,3 @@ def test_node_lifecycle_with_kill():
|
||||
|
||||
ctx.stop()
|
||||
assert all((ctx.started, ctx.killed, ctx.stopped)) and not ctx.alive
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -10,6 +10,7 @@ def test_names():
|
||||
event_name = getattr(events, name.upper())
|
||||
assert event_name == '.'.join(('execution', name))
|
||||
|
||||
|
||||
def test_event_object():
|
||||
# Same logic as above.
|
||||
c = Mock()
|
||||
|
||||
Reference in New Issue
Block a user