mcstasscript.tests.test_Instr

mcstasscript.tests.test_Instr

Functions

insert_mock_dump(instr, component_name[, ...])

setup_instr_no_path()

Sets up a neutron instrument without a package_path

setup_instr_root_path()

Sets up a neutron instrument with root package_path

setup_instr_with_input_path()

Sets up an instrument with a valid package_path, but it points to the dummy installation in the test folder.

setup_instr_with_input_path_relative()

Sets up an instrument with a valid package_path, but it points to the dummy installation in the test folder.

setup_instr_with_path()

Sets up an instrument with a valid package_path, but it points to the dummy installation in the test folder.

setup_populated_instr()

Sets up a neutron instrument with some features used and three components

setup_populated_instr_with_dummy_MCPL_comps()

Sets up a neutron instrument with some features used and three components

setup_populated_instr_with_dummy_path()

Sets up a neutron instrument with some features used and three components

setup_populated_with_some_options_instr()

Sets up a neutron instrument with some features used and two components

setup_populated_x_ray_instr()

Sets up a X-ray instrument with some features used and three components

setup_populated_x_ray_instr_with_dummy_path()

Sets up a x-ray instrument with some features used and three components

setup_x_ray_instr_no_path()

Sets up a X-ray instrument without a package_path

setup_x_ray_instr_root_path()

Sets up a X-ray instrument with root package_path

setup_x_ray_instr_with_path()

Sets up an instrument with a valid package_path, but it points to the dummy installation in the test folder.

Classes

DummyComponent(*args, **kwargs)

TestMcStas_instr([methodName])

Tests of the main class in McStasScript called McStas_instr.