Add test and stub test

This commit is contained in:
sfigato 2020-08-29 19:40:06 +02:00
parent a22f459915
commit 66885641c4
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -731,6 +731,20 @@ async def test_Service_create_not_existing(client_fixture):
assert client_fixture.called_with_args["search"]["args"] == (s.dn, 0)
@pytest.mark.asyncio
async def test_Service_sync_existing(client_fixture):
s = Service("existing_service", client_fixture)
await s.sync()
assert client_fixture.called_with_args["search"]["args"] == (s.dn, 0)
@pytest.mark.asyncio
async def test_Service_sync_non_existing(client_fixture):
pass
def test_Group(client_fixture):
c = Group("amici_miei", client_fixture)