def test_remove_relationship_that_doesnt_exist(): relationship_store = RelationshipStore(relationships) relationship_store.remove_relationship(list_item_id="123456", to_list_item_id="yyyyyy") assert not relationship_store.is_dirty assert len(relationship_store) == 2
def test_remove_relationship(): relationship_store = RelationshipStore(relationships) relationship_store.remove_relationship(list_item_id="123456", to_list_item_id="789101") assert relationship_store.is_dirty assert len(relationship_store) == 1