Exemple #1
0
def test_ufolint_runner_ufo3_validatereadload_layercontents_fail():
    testpath = os.path.join(ufo_fail_dir_basepath, 'layercontentsPL', 'UFO3-MissingLC.ufo')
    mr = MainRunner(testpath)

    with pytest.raises(SystemExit) as pytest_wrapped_e:
        mr._validate_read_load_glyphsdirs_layercontents_plist()

    assert pytest_wrapped_e.type == SystemExit
    assert pytest_wrapped_e.value.code == 1
Exemple #2
0
def test_ufolint_runner_ufo3_validatereadload_layercontents_success(capsys):
    ss = StdStreamer(ufo3_test_success_path)
    mr = MainRunner(ufo3_test_success_path)
    mr._validate_read_load_glyphsdirs_layercontents_plist()
    out, err = capsys.readouterr()
    assert out == ss.short_success_string