This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving tested user commands to viewmodels
- Loading branch information
1 parent
ae1b9b7
commit f46e80b
Showing
6 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
from pytest_bdd import scenario, when, then | ||
|
||
from slicereg.gui.app_model import AppModel | ||
|
||
|
||
@scenario("features/load_atlas.feature", "List Available Brainglobe Atlases") | ||
def test_outlined(): | ||
... | ||
|
||
|
||
@when("I refresh the brainglobe atlas list") | ||
def step_impl(model: AppModel): | ||
model.list_bgatlases() | ||
def step_impl(sidebar): | ||
sidebar.click_update_bgatlas_list_button() | ||
|
||
|
||
@then("I see a list of bg-atlasapi's available atlases.") | ||
def step_impl(model: AppModel, bg_atlases): | ||
assert model.bgatlas_names == bg_atlases | ||
def step_impl(sidebar, bg_atlases): | ||
sidebar.bgatlas_names == bg_atlases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters