Skip to content

Commit

Permalink
Fix metaclass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amolenaar committed Mar 9, 2020
1 parent 46865fb commit 1f0f9d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gaphor/diagram/classes/classespropertypages.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
PropertyPages,
UMLComboModel,
builder,
create_hbox_label,
on_bool_cell_edited,
on_keypress_event,
on_text_cell_edited,
Expand Down Expand Up @@ -177,7 +178,7 @@ def construct_metaclass(self):
page.default = entry

# monitor subject.name attribute
changed_id = entry.connect("changed", self._on_name_change)
changed_id = entry.connect("changed", self._on_name_changed)

def handler(event):
if event.element is subject and event.new_value is not None:
Expand Down
2 changes: 1 addition & 1 deletion gaphor/diagram/classes/tests/test_metaclasspropertypage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_name_input_field_for_normal_class(self):
editor = ClassPropertyPage(class_)
page = editor.construct()
assert page
entry = page.get_children()[0].get_children()[1]
entry = editor.builder.get_object("name-entry")
assert Gtk.Entry is type(entry)

assert "Class" == entry.get_text()
Expand Down

0 comments on commit 1f0f9d6

Please sign in to comment.