def test_add_label(notes): notes.add_label('YETI', 'FF0000') assert notes.labels == (_Label(id='0', color='30DBFF', name='FISH'), _Label(id='1', color='30FF97', name='SHARK'), _Label(id='2', color='E1FF80', name='REG'), _Label(id='3', color='E1FF80', name='GENERAL'), _Label(id='4', color='FF0000', name='YETI'))
def test_delete_label(notes): notes.del_label('REG') assert notes.labels == ( _Label(id='0', color='30DBFF', name='FISH'), _Label(id='1', color='30FF97', name='SHARK'), _Label(id='3', color='E1FF80', name='GENERAL'), )
def test_delete_label(notes): notes.del_label("REG") assert notes.labels == ( _Label(id="0", color="30DBFF", name="FISH"), _Label(id="1", color="30FF97", name="SHARK"), _Label(id="3", color="E1FF80", name="GENERAL"), )
def test_all_labels(notes): assert notes.labels == ( _Label(id="0", color="30DBFF", name="FISH"), _Label(id="1", color="30FF97", name="SHARK"), _Label(id="2", color="E1FF80", name="REG"), _Label(id="3", color="E1FF80", name="GENERAL"), )
def test_all_labels(notes): assert notes.labels == ( _Label(id='0', color='30DBFF', name='FISH'), _Label(id='1', color='30FF97', name='SHARK'), _Label(id='2', color='E1FF80', name='REG'), _Label(id='3', color='E1FF80', name='GENERAL') )
def test_add_label(notes): notes.add_label("YETI", "FF0000") assert notes.labels == ( _Label(id="0", color="30DBFF", name="FISH"), _Label(id="1", color="30FF97", name="SHARK"), _Label(id="2", color="E1FF80", name="REG"), _Label(id="3", color="E1FF80", name="GENERAL"), _Label(id="4", color="FF0000", name="YETI"), )
def test_add_label(notes): notes.add_label('YETI', 'FF0000') assert notes.labels == ( _Label(id='0', color='30DBFF', name='FISH'), _Label(id='1', color='30FF97', name='SHARK'), _Label(id='2', color='E1FF80', name='REG'), _Label(id='3', color='E1FF80', name='GENERAL'), _Label(id='4', color='FF0000', name='YETI') )
def test_all_labels(notes): assert notes.labels == (_Label(id='0', color='30DBFF', name='FISH'), _Label(id='1', color='30FF97', name='SHARK'), _Label(id='2', color='E1FF80', name='REG'), _Label(id='3', color='E1FF80', name='GENERAL'))