Skip to content

Commit

Permalink
test plot_matrix=true is set in config
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Apr 17, 2024
1 parent 6c27a01 commit bc3c1fb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app/models/application.server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,34 @@ select = 5
const output_config = await retrieveConfigFromArchive(result);
assert.equal(output_config, expected_config);
});

test('plot_matrix should be set to true for clustfcc and clustrmsd modules', async () => {
const input_config = `\
[clustfcc]
[clustrmsd]
`;
const archive = await prepareArchive(input_config);

const result = await rewriteConfigInArchive(archive, ["easy"]);

const expected_config = `\
run_dir = 'output'
mode = 'local'
postprocess = true
clean = true
offline = false
ncores = 1
[clustfcc]
plot_matrix = true
[clustrmsd]
plot_matrix = true
`;
const output_config = await retrieveConfigFromArchive(result);
assert.equal(output_config, expected_config);
})
});

0 comments on commit bc3c1fb

Please sign in to comment.