##utils.env["url"] = "127.0.0.1:8642" test_steps = [ start_server, ("Get the example code", "hg clone %s ." % repository, assert_in_output, "updating to branch default"), ("Set up a Sumatra project", build_command( "smt init --store=http://testuser:abc123@{}/records/ -m glass_sem_analysis.py -e python -d Data -i . ProjectGlass", "url")), ("Run the ``glass_sem_analysis.py`` script with Sumatra", "smt run -r 'initial run' default_parameters MV_HFV_012.jpg", assert_in_output, ("2416.86315789 60.0", "histogram.png")), ("Comment on the outcome", "smt comment 'works fine'"), edit_parameters("default_parameters", "no_filter", "filter_size", 1), ( "Run with changed parameters and user-defined label", "smt run -l example_label -r 'No filtering' no_filter MV_HFV_012.jpg", # TODO: assert(results have changed) assert_in_output, "phases.png", assert_label_equal, "example_label"), ("Change parameters from the command line", "smt run -r 'Trying a different colourmap' default_parameters MV_HFV_012.jpg phases_colourmap=hot" ), # assert(results have changed) ( "Add another comment", "smt comment 'The default colourmap is nicer'" ), #TODO add a comment to an older record (e.g. this colourmap is nicer than 'hot')") ("Add tags on the command line", build_command("smt tag mytag {0} {1}", "labels")),
##utils.env["url"] = "127.0.0.1:8642" test_steps = [ start_server, ("Get the example code", "hg clone %s ." % repository, assert_in_output, "updating to branch default"), ("Set up a Sumatra project", build_command("smt init --store=http://testuser:abc123@{}/records/ -m glass_sem_analysis.py -e python -d Data -i . ProjectGlass", "url")), ("Run the ``glass_sem_analysis.py`` script with Sumatra", "smt run -r 'initial run' default_parameters MV_HFV_012.jpg", assert_in_output, ("2416.86315789 60.0", "histogram.png")), ("Comment on the outcome", "smt comment 'works fine'"), edit_parameters("default_parameters", "no_filter", "filter_size", 1), ("Run with changed parameters and user-defined label", "smt run -l example_label -r 'No filtering' no_filter MV_HFV_012.jpg", # TODO: assert(results have changed) assert_in_output, "phases.png", assert_label_equal, "example_label"), ("Change parameters from the command line", "smt run -r 'Trying a different colourmap' default_parameters MV_HFV_012.jpg phases_colourmap=hot"), # assert(results have changed) ("Add another comment", "smt comment 'The default colourmap is nicer'"), #TODO add a comment to an older record (e.g. this colourmap is nicer than 'hot')") ("Add tags on the command line", build_command("smt tag mytag {0} {1}", "labels")), ("Review previous computations - get a list of labels", "smt list", assert_in_output, expected_short_list), ("Review previous computations in detail", "smt list -l",