Exemplo n.º 1
0
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"
Exemplo n.º 2
0
 def hook(entry: Entry) -> None:
     entry.label = "Cao2019"