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'])
def test_main_each_file(cphd_file): assert not main([cphd_file])
def test_main_each_file(cphd_file): assert not cphd_consistency.main([cphd_file])