コード例 #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'))
コード例 #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'),
    )
コード例 #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"),
    )
コード例 #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"),
    )
コード例 #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'),
     )
コード例 #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')
    )
コード例 #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"),
    )
コード例 #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')
    )
コード例 #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'))