From 6657f1274ce2d7ae478644ad4459409b858df5c0 Mon Sep 17 00:00:00 2001 From: House Date: Thu, 1 Feb 2024 22:09:37 +0200 Subject: [PATCH] fix: Used black to fix linter error --- tests/test_watcher_ex.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_watcher_ex.py b/tests/test_watcher_ex.py index 05a8ece..3684087 100644 --- a/tests/test_watcher_ex.py +++ b/tests/test_watcher_ex.py @@ -16,6 +16,7 @@ from tests.test_enforcer import get_examples, TestCaseBase from unittest import IsolatedAsyncioTestCase + class SampleWatcher: def __init__(self): self.callback = None @@ -113,7 +114,7 @@ def start_watch(self): pass -class AsyncSampleWatcher(): +class AsyncSampleWatcher: def __init__(self): self.callback = None self.notify_message = None @@ -292,7 +293,7 @@ def get_enforcer(self, model=None, adapter=None): model, adapter, ) - + async def test_auto_notify_enabled(self): e = self.get_enforcer( get_examples("basic_model.conf"), @@ -328,7 +329,6 @@ async def test_auto_notify_enabled(self): await e.remove_policies(rules) self.assertEqual(w.notify_message, "called remove policies") - async def test_auto_notify_disabled(self): e = self.get_enforcer( get_examples("basic_model.conf"), @@ -364,4 +364,4 @@ async def test_auto_notify_disabled(self): self.assertEqual(w.notify_message, None) await e.remove_policies(rules) - self.assertEqual(w.notify_message, None) \ No newline at end of file + self.assertEqual(w.notify_message, None)