Skip to content

Commit

Permalink
Patch MockContext for SA 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Aug 13, 2023
1 parent cc9856d commit 6b24c66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/galaxy/app_unittest_utils/tools_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ def expunge_all(self):
def query(self, clazz):
return MockQuery(self.model_objects.get(clazz))

def get(self, clazz, id):
return self.query(clazz).get(id)

def flush(self):
self.flushed = True

Expand Down

0 comments on commit 6b24c66

Please sign in to comment.