-
Notifications
You must be signed in to change notification settings - Fork 1
Jump between steps #561
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
Jump between steps #561
Changes from 10 commits
028ec7b
79a2320
58afa0f
741e589
abe3a6c
7ea005f
b6c9997
737db2c
fec1575
4cc8179
9b903fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,7 @@ def test_step_previous(self, run_imported): | |
| def test_step_goto(self, caplog, run_imported): | ||
| step = ImputationByMinPerProtein() | ||
| run_imported.step_add(step) | ||
| run_imported.step_goto(0, "data_preprocessing") | ||
| run_imported.step_goto(0, "data_preprocessing_wrong") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Warum wurde das geändert? Testet es dann nicht etwas ganz anderes?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hier wurde getestet, dass wenn man nach vorne springen will, das nicht funktioniert. Aber genau die Funktionalität wurde ja umgeschrieben. Jetzt probiert er halt zu einem Step einer nicht existierenden Section zu springen. Der Test macht also bisschen was anderes aber hatte ihn trotzdem einfach mal drin gelassen weil mehr Tests immer gut :)
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh fair! Dann sinnvoll :)) |
||
| assert any( | ||
| message["level"] == logging.ERROR and "ValueError" in message["msg"] | ||
| for message in run_imported.current_messages | ||
|
|
@@ -105,3 +105,13 @@ def test_step_goto(self, caplog, run_imported): | |
| def test_step_change_method(self, run_imported): | ||
| run_imported.step_change_method("DiannImport") | ||
| assert run_imported.current_step.__class__.__name__ == "DiannImport" | ||
|
|
||
| def test_set_steps_outdated(self,run_imported,maxquant_data_file): | ||
| step = ImputationByMinPerProtein() | ||
| run_imported.step_add(step) | ||
| run_imported.step_next() | ||
| assert run_imported.current_step.calculation_status == "incomplete" | ||
| run_imported.step_calculate(inputs={"shrinking_value": 0.5}) | ||
| assert run_imported.current_step.calculation_status == "complete" | ||
| run_imported.step_set_outdated() | ||
| assert run_imported.current_step.calculation_status == "outdated" | ||
Uh oh!
There was an error while loading. Please reload this page.