Skip to content

Commit

Permalink
- set connected port to synchronize connection data with data provide…
Browse files Browse the repository at this point in the history
…d by

  connection tool


git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/branches/ports@2627 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
wrobell committed Jan 18, 2009
1 parent cab3a43 commit b1bb50d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gaphor/tests/testcase.py
Expand Up @@ -74,6 +74,7 @@ def connect(self, line, handle, item, port=None):
port = item.ports()[0]

handle.connected_to = item
handle.connected_port = port

query = (item, line)
adapter = component.queryMultiAdapter(query, IConnect)
Expand All @@ -95,6 +96,7 @@ def disconnect(self, line, handle):
adapter.disconnect(line.head)

handle.connected_to = None
handle.connected_port = None

assert handle.connected_to is None

Expand Down

0 comments on commit b1bb50d

Please sign in to comment.