comparison tests/unit/conftest.py @ 4034:9496f28dadff

tests (unit): Add test for plugin XEP-0215: rel 418
author Goffi <goffi@goffi.org>
date Fri, 07 Apr 2023 15:17:24 +0200
parents f5ba7594cced
children 524856bd7b19
comparison
equal deleted inserted replaced
4033:5a42c7842556 4034:9496f28dadff
110 110
111 @fixture 111 @fixture
112 def client(): 112 def client():
113 client = MagicMock() 113 client = MagicMock()
114 client.jid = jid.JID("test_user@test.example/123") 114 client.jid = jid.JID("test_user@test.example/123")
115 client.server_jid = jid.JID("test.example")
115 client.pubsub_service = jid.JID("pubsub.test.example") 116 client.pubsub_service = jid.JID("pubsub.test.example")
116 client.pubsub_client = AsyncMock() 117 client.pubsub_client = AsyncMock()
117 return client 118 return client