test_plugin: Restore negative assert to test_registry_group_by_directive.
This commit is contained in:
parent
484c47a680
commit
e424173216
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ def test_registry_group_by_directive(group_str, expected):
|
||||||
hook_groups = HOOK_REGISTRY.group_by_directive(*args)
|
hook_groups = HOOK_REGISTRY.group_by_directive(*args)
|
||||||
actual = {type(hook) for hook in hook_groups['Transaction']}
|
actual = {type(hook) for hook in hook_groups['Transaction']}
|
||||||
assert actual.issuperset(expected)
|
assert actual.issuperset(expected)
|
||||||
|
if len(expected) == 1:
|
||||||
|
assert not (TransactionError in actual and PostingError in actual)
|
||||||
|
|
||||||
def test_registry_unknown_group_name():
|
def test_registry_unknown_group_name():
|
||||||
with pytest.raises(ValueError):
|
with pytest.raises(ValueError):
|
||||||
|
|
Loading…
Add table
Reference in a new issue