Skip to content

Commit

Permalink
ENH: Implement MockSubscription.delete
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Jul 17, 2024
1 parent c7f01b2 commit c8e8b67
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions octue/cloud/emulators/_pub_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ def create(self, allow_existing=False):
self._created = True

def delete(self):
"""Do nothing.
"""Delete the subscription from the global subscriptions dictionary.
:return None:
"""
pass
try:
SUBSCRIPTIONS.remove(self.name)
except KeyError:
pass

def exists(self, timeout=5):
"""Check if the subscription exists in the global subscriptions dictionary.
Expand Down

0 comments on commit c8e8b67

Please sign in to comment.