`_is_subscribed_to_msg` need only subscribe to one of the topics
This commit is contained in:
NIC619
2019-08-05 18:20:04 +08:00
parent a2efd03dfa
commit b96ef0e6c7
2 changed files with 4 additions and 22 deletions

View File

@ -183,16 +183,10 @@ async def test_get_msg_validators(pubsubs_fsub):
@pytest.mark.parametrize("num_hosts", (1,))
@pytest.mark.parametrize(
"is_topic_1_val_passed, is_topic_2_val_passed",
(
(False, True),
(True, False),
(True, True),
)
"is_topic_1_val_passed, is_topic_2_val_passed", ((False, True), (True, False), (True, True))
)
@pytest.mark.asyncio
async def test_validate_msg(pubsubs_fsub, is_topic_1_val_passed, is_topic_2_val_passed):
def passed_sync_validator(peer_id, msg):
return True