Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkcli.test set case names programmatically #318

Open
robnagler opened this issue Nov 1, 2022 · 1 comment
Open

pkcli.test set case names programmatically #318

robnagler opened this issue Nov 1, 2022 · 1 comment
Assignees

Comments

@robnagler
Copy link
Member

robnagler commented Nov 1, 2022

Avoids code like this:

def test_controls_monitor(fc):
    sim = fc.sr_sim_data("FODO with instruments")
    sim.models.controlSettings.operationMode = "DeviceServer"
    sim.models.controlSettings.readOnly = "1"
    _run_test(sim, "instrumentAnimation", "device_server_monitor.txt")

def test_controls_opt1(fc):
    sim = fc.sr_sim_data("FODO with instruments")
    sim.models.optimizerSettings.method = "nmead"
    _run_test(sim, "instrumentAnimation", "madx_nmead.txt")
[repeated 5 times]
@robnagler robnagler changed the title 20230131 pkcli.test set case names programmatically pkcli.test set case names programmatically Apr 17, 2023
@robnagler
Copy link
Member Author

We need the ability to add case names based on, say, case_dirs or manually, e.g. sirepo importer_test doesn't use case_dirs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants