Skip to content

Commit

Permalink
fix: test case test.common.MapProcessorTest -- missing a motor postio…
Browse files Browse the repository at this point in the history
…n in the spec file
  • Loading branch information
keara-soloway committed Mar 5, 2024
1 parent 675e060 commit 3a62283
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CHAP/test/common/processor_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ def setUp(self):
column_labels = f'{dims[1]["name"]} {" ".join([s["name"] for s in scalars])}'
spec_lines = [f'#F {map_config["spec_scans"][0]["spec_file"]}']
spec_lines += [f'#E {int(datetime.now().timestamp())}']
spec_lines += [f'#O0 {dims[0]["name"]}']
spec_lines += [f'#o0 {dims[0]["name"]}']
spec_lines += [f'#O0 {" ".join(d["name"] for d in dims)}']
spec_lines += [f'#o0 {" ".join(d["name"] for d in dims)}']
for scan_no, dim_0_val in zip(scan_numbers, dim_values):
spec_lines += [f'#S {scan_no} {scan_command}']
spec_lines += [f'#P0 {dim_0_val}']
spec_lines += [f'#P0 {dim_0_val} 0']
spec_lines += [f'#L {column_labels}']
for dim_1_val in dim_values:
spec_lines += [f'{dim_1_val} {" ".join([str(random()) for s in scalars])}']
Expand All @@ -129,7 +129,6 @@ def tearDown(self):
"""Remove the fake spec file created in the setUp method."""
os.remove(self.spec_file)


class IntegrateMapProcessorTest(MapProcessorTest):
"""Unit tets for CHAP.common.IntegrateMapProcessor class"""

Expand Down

0 comments on commit 3a62283

Please sign in to comment.