Example #1
0
def test_main(good_xml_str, tmpdir):
    assert not main([str(GOOD_CPHD), '--schema', DEFAULT_SCHEMA, '--signal-data'])
    assert not main([str(GOOD_CPHD), '--noschema'])
    assert not main([str(GOOD_CPHD)])

    xml_file = os.path.join(tmpdir, 'cphd.xml')
    with open(xml_file, 'w') as fid:
        fid.write(good_xml_str)
    assert not main([str(xml_file), '-v'])
Example #2
0
def test_main_each_file(cphd_file):
    assert not main([cphd_file])
Example #3
0
def test_main_each_file(cphd_file):
    assert not cphd_consistency.main([cphd_file])