-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This way target can be updated, and works better in combination with Reacton and Solara.
- Loading branch information
1 parent
2942087
commit cc521f6
Showing
2 changed files
with
41 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import ipypopout | ||
import ipywidgets as widgets | ||
|
||
|
||
def test_create_target(): | ||
box = widgets.VBox() | ||
button = ipypopout.PopoutButton(target=box) | ||
assert button.target_model_id == box._model_id | ||
assert button.window_name == box._model_id | ||
|
||
box2 = widgets.VBox() | ||
button.target = box2 | ||
assert button.target_model_id == box2._model_id | ||
assert button.window_name == box2._model_id | ||
|