-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: there can be only one comm_manager
- Loading branch information
1 parent
4dc3033
commit 82291d3
Showing
2 changed files
with
19 additions
and
2 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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
from ipykernel.comm import Comm | ||
|
||
from .utils import kernel | ||
from ipykernel.ipkernel import IPythonKernel | ||
|
||
async def test_comm(kernel): | ||
c = Comm() | ||
c.kernel = kernel # type:ignore | ||
c.publish_msg("foo") | ||
|
||
|
||
def test_comm_in_manager(ipkernel: IPythonKernel): | ||
comm = Comm() | ||
assert comm.comm_id in ipkernel.comm_manager.comms |