Skip to content

Commit

Permalink
Fix test failure; don't assume History is on.
Browse files Browse the repository at this point in the history
  • Loading branch information
amahabal committed Mar 12, 2017
1 parent 58bd933 commit 4980933
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions farg/apps/pyseqsee/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ def __init__(self, *, first, second, parents=[]):
self.first = first
self.second = second
Categorizable.__init__(self)
roles = {first._hid: "first end", second._hid: "second end"}
History.AddArtefact(self, ObjectType.WS_RELN, "", parents, roles)
History.Note("Created relation")
if History._is_history_on:
roles = {first._hid: "first end", second._hid: "second end"}
History.AddArtefact(self, ObjectType.WS_RELN, "", parents, roles)
History.Note("Created relation")

def FindCategories(self, *, end_category):
new_cats = []
Expand Down

0 comments on commit 4980933

Please sign in to comment.