@@ -360,15 +360,20 @@ def test_load_wavelength_from_config_file_without_conf_files_bad(
360360 actual_args = get_args_cli (cli_inputs )
361361
362362 msg = re .escape (
363- "No configuration file was found containing information "
364- "about the wavelength or anode type. \n "
365- "You can add the wavelength or anode type "
366- "to a configuration file on the current computer "
367- "and it will be automatically associated with "
368- "subsequent diffpy data by default. \n "
369- "You will only have to do that once. \n "
370- "For more information, please refer to www.diffpy.org/"
371- "diffpy.labpdfproc/examples/toolsexample.html"
363+ "\n The wavelength was not specified and no "
364+ "configuration file 'diffpyconfig.json' containing "
365+ "the wavelength or X-ray source was found in either the "
366+ "local or home directories. Either specify the wavelength "
367+ "or source using the -w/--wavelength option or "
368+ "create a configuration file.\n \n "
369+ "You can add the wavelength or anode type to a "
370+ "configuration file on this computer. Once created, it "
371+ "will be automatically used for subsequent diffpy data "
372+ "by default, and you will only need to do this once.\n \n "
373+ "For detailed instructions on creating the configuration "
374+ "file, please refer to:\n "
375+ "https://www.diffpy.org/diffpy.labpdfproc/examples/"
376+ "toolsexample.html"
372377 )
373378 with pytest .raises (ValueError , match = msg ):
374379 load_wavelength_from_config_file (actual_args )
0 commit comments