From 66885641c46d4e0d947f17a214d938971e72ac7e Mon Sep 17 00:00:00 2001 From: Blallo Date: Sat, 29 Aug 2020 19:40:06 +0200 Subject: [PATCH] Add test and stub test --- async_tests/test_async_ldap_model.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/async_tests/test_async_ldap_model.py b/async_tests/test_async_ldap_model.py index 58e1f88..363c2ff 100644 --- a/async_tests/test_async_ldap_model.py +++ b/async_tests/test_async_ldap_model.py @@ -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)