forked from p15670423/monkey
UT: Simplify logic in test_pypubsub_event_queue.test_subscribe_types()
This commit is contained in:
parent
e905f6eddf
commit
6ecb2f4d49
|
@ -78,13 +78,12 @@ def test_subscribe_all():
|
|||
]
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("subscriber_1", "subscriber_2", "subscriber_1_calls", "subscriber_2_calls")
|
||||
def test_subscribe_types(subscriber_1, subscriber_2, subscriber_1_calls, subscriber_2_calls):
|
||||
@pytest.mark.usefixtures("subscriber_1", "subscriber_1_calls")
|
||||
def test_subscribe_types(subscriber_1, subscriber_1_calls):
|
||||
pypubsub_event_queue.subscribe_type(EventType, subscriber_1)
|
||||
pypubsub_event_queue.publish(EventType)
|
||||
|
||||
assert subscriber_1_calls == [EventType.__name__]
|
||||
assert subscriber_2_calls == []
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("subscriber_1", "subscriber_2", "subscriber_1_calls", "subscriber_2_calls")
|
||||
|
|
Loading…
Reference in New Issue