seisflows.tests.test_seisflows ============================== .. py:module:: seisflows.tests.test_seisflows .. autoapi-nested-parse:: Test suite for the SeisFlows command line interface tool and the underlying parser class, ensures that the command line tool works as expected Attributes ---------- .. autoapisummary:: seisflows.tests.test_seisflows.TEST_DIR Functions --------- .. autoapisummary:: seisflows.tests.test_seisflows.par_file seisflows.tests.test_seisflows.par_file_dict seisflows.tests.test_seisflows.test_call_seisflows seisflows.tests.test_seisflows.test_edited_parameter_file_name seisflows.tests.test_seisflows.test_cmd_setup seisflows.tests.test_seisflows.test_cmd_configure seisflows.tests.test_seisflows.test_cmd_par Module Contents --------------- .. py:data:: TEST_DIR .. py:function:: par_file(tmpdir) Create a template parameter file .. py:function:: par_file_dict() Return default parameter file parameters as a dictionary object :rtype: seisflows.config.Dict :return: dictionary of parameters .. py:function:: test_call_seisflows(par_file, par_file_dict) Test calling the 'par' command from command line and inside a python environemnt. Check that case-insensitivity is also honored Check against the actual value coming from the parameter file Also tests the seisflows 'par' command .. py:function:: test_edited_parameter_file_name(tmpdir, par_file, par_file_dict) Similar test as call_seisflows but just make sure that arbitrary naming of the parameter file still works .. py:function:: test_cmd_setup(tmpdir) Test setting up the SeisFlows working directory .. py:function:: test_cmd_configure(tmpdir, par_file) Test configuring a parameter file from a template par file .. py:function:: test_cmd_par(tmpdir, par_file) Make sure the 'par' command can print and edit the parameter file :param tmpdir: :return: