Move unittest YAML files into their own directory, pending more python unit tests in a followup commit
This commit is contained in:
tests.py
unittest/yaml
correct-address.yamlcorrect-bondethernet.yamlcorrect-bridgedomain.yamlcorrect-empty.yamlcorrect-empty2.yamlcorrect-example1.yamlcorrect-l2xc.yamlcorrect-loopback.yamlcorrect-vxlan.yamlerror-address1.yamlerror-bondethernet1.yamlerror-bondethernet2.yamlerror-bondethernet3.yamlerror-bondethernet4.yamlerror-bridgedomain1.yamlerror-bridgedomain2.yamlerror-bridgedomain3.yamlerror-bridgedomain4.yamlerror-bridgedomain5.yamlerror-bridgedomain6.yamlerror-bridgedomain7.yamlerror-interface-mtu1.yamlerror-interface-mtu2.yamlerror-l2xc1.yamlerror-l2xc2.yamlerror-l2xc3.yamlerror-l2xc4.yamlerror-l2xc5.yamlerror-l2xc6.yamlerror-l2xc7.yamlerror-l2xc8.yamlerror-lcp-unique1.yamlerror-lcp-unique2.yamlerror-loopback1.yamlerror-schema-field1.yamlerror-schema-field2.yamlerror-subinterface1.yamlerror-subinterface2.yamlerror-subinterface3.yamlerror-subinterface4.yamlerror-subinterface5.yamlerror-subinterface6.yamlerror-subinterface7.yamlerror-subinterface8.yamlerror-vxlan1.yamlerror-vxlan2.yaml
2
tests.py
2
tests.py
@ -56,7 +56,7 @@ def load_unittest(fn):
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter)
|
parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter)
|
||||||
parser.add_argument('-t', '--test', dest='test', type=str, nargs='+', default=['unittest/*.yaml'], help="""YAML test file(s)""")
|
parser.add_argument('-t', '--test', dest='test', type=str, nargs='+', default=['unittest/yaml/*.yaml'], help="""YAML test file(s)""")
|
||||||
parser.add_argument('-s', '--schema', dest='schema', type=str, default='./schema.yaml', help="""YAML schema validation file""")
|
parser.add_argument('-s', '--schema', dest='schema', type=str, default='./schema.yaml', help="""YAML schema validation file""")
|
||||||
parser.add_argument('-d', '--debug', dest='debug', action='store_true', help="""Enable debug, default False""")
|
parser.add_argument('-d', '--debug', dest='debug', action='store_true', help="""Enable debug, default False""")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user