Skip to content

Commit 2f2ccf5

Browse files
committed
Adapt the tests
Make the failing tests pass by manually setting _is_loaded to True to mimic that the widget is correctly loaded so that the add of overlays can be done
1 parent a02b343 commit 2f2ccf5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/tests/test_aladin.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515

1616
aladin = Aladin()
1717

18+
# Tell python that the JS part is loaded
19+
# so that adding overlay requests are sent
20+
# through the events/traitlets system.
21+
aladin._is_loaded = True
22+
1823

1924
# monkeypatched sesame call to avoid remote access during tests
2025
@pytest.fixture

0 commit comments

Comments
 (0)