def test_entry_set_label() -> None: """Test label changing.""" # this test may fail if the input dict is not copied entry = Entry("Cao_2019", EXAMPLE_ENTRY_DICT) entry.label = "Cao2019" assert entry.label == "Cao2019"
def hook(entry: Entry) -> None: entry.label = "Cao2019"