seisflows.tests.test_seisflows
Test suite for the SeisFlows command line interface tool and the underlying parser class, ensures that the command line tool works as expected
Module Contents
Functions
|
Create a template parameter file |
Return default parameter file parameters as a dictionary object |
|
|
Test calling the 'par' command from command line and inside a python |
|
Similar test as call_seisflows but just make sure that arbitrary naming |
|
Test setting up the SeisFlows working directory |
|
Test configuring a parameter file from a template par file |
|
Make sure the 'par' command can print and edit the parameter file |
Attributes
- seisflows.tests.test_seisflows.TEST_DIR
- seisflows.tests.test_seisflows.par_file(tmpdir)
Create a template parameter file
- seisflows.tests.test_seisflows.par_file_dict()
Return default parameter file parameters as a dictionary object
- Return type
seisflows.config.Dict
- Returns
dictionary of parameters
- seisflows.tests.test_seisflows.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
- seisflows.tests.test_seisflows.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
- seisflows.tests.test_seisflows.test_cmd_setup(tmpdir)
Test setting up the SeisFlows working directory
- seisflows.tests.test_seisflows.test_cmd_configure(tmpdir, par_file)
Test configuring a parameter file from a template par file
- seisflows.tests.test_seisflows.test_cmd_par(tmpdir, par_file)
Make sure the ‘par’ command can print and edit the parameter file :param tmpdir: :return: