Beispiel #1
0
def test_save_refs():
    """Test save references."""
    references.add("zello world")
    lc.save_references()
    p1 = Path(CMDFILE)
    s = p1.open().readlines()
    assert s[-1].split(':')[1][1:] == 'zello world'
    p1.unlink()
Beispiel #2
0
def test_save_refs():
    """Test save references."""
    references.add("zello world")
    lc.save_references()
    p1 = Path(CMDFILE)
    s = p1.read_text().strip().split('\n')
    s = [i for i in s]
    assert s[-1] == 'zello world'
    p1.unlink()
Beispiel #3
0
def test_param():
    """Test param plot."""
    p = Path('param.pdf')
    lplt.param(
        list(range(10)),
        list(range(10)),
        filename='param.pdf',
    )
    assert p.exists()
    p.unlink()
Beispiel #4
0
def test_label_dots():
    """Test label_dots plot."""
    p = Path('label_dots.pdf')
    lplt.param(
        ['a', 'b', 'c'],
        list(range(3)),
        filename='label_dots.pdf',
    )
    assert p.exists()
    p.unlink()