Skip to content

Commit

Permalink
Used black to fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
tanasecucliciu committed Feb 1, 2024
1 parent 43dba49 commit 16c2489
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_watcher_ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from tests.test_enforcer import get_examples, TestCaseBase
from unittest import IsolatedAsyncioTestCase


class SampleWatcher:
def __init__(self):
self.callback = None
Expand Down Expand Up @@ -113,7 +114,7 @@ def start_watch(self):
pass


class AsyncSampleWatcher():
class AsyncSampleWatcher:
def __init__(self):
self.callback = None
self.notify_message = None
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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)
self.assertEqual(w.notify_message, None)

0 comments on commit 16c2489

Please sign in to comment.