Clean up after test case

This commit is contained in:
Leigh Morresi
2021-02-27 09:37:40 +01:00
parent 66be95ecc6
commit 013cbcabd4
3 changed files with 8 additions and 1 deletions

View File

@@ -157,7 +157,10 @@ class ChangeDetectionStore:
def delete(self, uuid):
with self.lock:
del (self.__data['watching'][uuid])
if uuid == 'all':
self.__data['watching'] = {}
else:
del (self.__data['watching'][uuid])
self.needs_write = True
def url_exists(self, url):