Ejemplo n.º 1
0
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'))
Ejemplo n.º 2
0
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'),
    )
Ejemplo n.º 3
0
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"),
    )
Ejemplo n.º 4
0
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"),
    )
Ejemplo n.º 5
0
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'),
     )
Ejemplo n.º 6
0
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')
    )
Ejemplo n.º 7
0
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"),
    )
Ejemplo n.º 8
0
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')
    )
Ejemplo n.º 9
0
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'))