def test_circulation_item_not_exist(testdata): """Test return False if item does not exist.""" item_pid = dict(type=ITEM_PID_TYPE, value="not-existing-item-pid") assert not item_exists(item_pid)
def test_circulation_item_not_exist(testdata): """Test return False if item does not exist.""" assert not item_exists("not-existing-item-pid")
def test_item_exists(testdata): """Test return True if item exists.""" first_item_pid = testdata["items"][0]["pid"] item_pid = dict(type=ITEM_PID_TYPE, value=first_item_pid) assert item_exists(item_pid)
def test_item_exists(testdata): """Test return True if item exists.""" first_item_pid = testdata["items"][0]["pid"] assert item_exists(first_item_pid)