Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Oct 21, 2024
1 parent 25b2fc3 commit ce89cfd
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ipywidgets/widgets/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
NEW_COMM_PACKAGE = False

import ipykernel.comm

import pytest

class DummyComm():
comm_id = 'a-b-c-d'
Expand All @@ -34,18 +34,13 @@ def send(self, *args, **kwargs):
def close(self, *args, **kwargs):
pass

class DummyCommManager():

def unregister_comm(self, comm):
pass


def dummy_create_comm(**kwargs):
return DummyComm()


def dummy_get_comm_manager(**kwargs):
return DummyCommManager()
return {}


_widget_attrs = {}
Expand Down Expand Up @@ -92,8 +87,11 @@ def teardown_test_comm():
setattr(Widget, attr, value)
_widget_attrs.clear()

@pytest.fixture(autouse=True)
def setup():
setup_test_comm()

def teardown():
yield
teardown_test_comm()

def call_method(method, *args, **kwargs):
method(*args, **kwargs)

0 comments on commit ce89cfd

Please sign in to comment.