Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_unit_delete() -> bool:
a = Service()
a.serverobj = report_remote_server.Server()
ret = a.delete([])
assert ret is False
assert ret is None


@pytest.mark.ado_test
Expand Down Expand Up @@ -240,15 +240,15 @@ def test_create_on_existing(request, get_exec) -> bool:
success = False
try:
_ = tmp_adr.start(create_db=True)
except DatabaseDirNotProvidedError:
except CannotCreateDatabaseError:
success = True
assert success


@pytest.mark.ado_test
def test_stop_before_starting(adr_service_create) -> bool:
success = adr_service_create.stop()
assert success
assert success is None


def test_get_sessionid(adr_service_create) -> bool:
Expand Down Expand Up @@ -280,10 +280,10 @@ def test_query_table(adr_service_query) -> bool:
@pytest.mark.ado_test
def test_delete_item(adr_service_query) -> bool:
only_text = adr_service_query.query(query_type="Item", filter="A|i_type|cont|html")
ret = adr_service_query.delete(only_text)
adr_service_query.delete(only_text)
newly_items = adr_service_query.query(query_type="Item", filter="A|i_type|cont|html")
adr_service_query.stop()
assert ret and len(newly_items) == 0
assert len(newly_items) == 0


def test_vis_report(adr_service_query) -> bool:
Expand Down