From 95ae5449520e07be1d84605dd3abfd401b04c62c Mon Sep 17 00:00:00 2001 From: davebshow <davebshow@gmail.com> Date: Thu, 21 Jul 2016 13:47:40 -0400 Subject: [PATCH] added test for setting single card vertex prop to None --- tests/test_vertex_properties_functional.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_vertex_properties_functional.py b/tests/test_vertex_properties_functional.py index 96802f0..ebe3e7a 100644 --- a/tests/test_vertex_properties_functional.py +++ b/tests/test_vertex_properties_functional.py @@ -10,6 +10,9 @@ async def test_add_update_property(session, person): person.birthplace = 'unknown' result = await session.save(person) assert result.birthplace.value == 'unknown' + person.birthplace = None + result = await session.save(person) + assert not result.birthplace @pytest.mark.asyncio @@ -34,7 +37,7 @@ async def test_add_update_list_card_property(session, person): @pytest.mark.asyncio -async def test_add_update_list_card_property(session, place): +async def test_add_update_set_card_property(session, place): async with session: place.important_numbers = set([1, 2]) result = await session.save(place) -- GitLab