ewoksscxrd.tests.test_createparfiles#

Functions

sample_par_file(tmp_path)

Creates a valid .par file for testing.

stub_create_par_file(monkeypatch, tmp_path)

Stub out create_par_file to record inputs and write a dummy .par file.

test_create_par_files_missing(tmp_path)

If the .par file does not exist, no files are saved.

test_create_par_files_success(tmp_path, ...)

Verify CreateParFiles invokes create_par_file correctly, writes a .par file, and populates saved_files_path.

test_create_par_files_with_distance(...)

If an optional 'distance' is provided, we should rewrite via temp.par and stub_create_par_file should see src_file ending in temp.par.

test_create_par_files_wrong_extension(tmp_path)

If the file exists but has the wrong extension, no files are saved.