mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-03 12:20:37 +08:00
TST: fix redundant partial
This commit is contained in:
1 parent
23c9bb0a7f
commit
e33cc25265
1 file changed
+1
-1
@@ -266,7 +266,7 @@ class TestStatelessRules(RuleTestCase):
|
||||
@subtest(minutes_for_days(), 'ms')
|
||||
def test_Always(self, ms):
|
||||
should_trigger = partial(Always().should_trigger, env=self.env)
|
||||
self.assertTrue(all(map(partial(should_trigger, env=self.env), ms)))
|
||||
self.assertTrue(all(map(should_trigger, ms)))
|
||||
|
||||
@subtest(minutes_for_days(), 'ms')
|
||||
def test_Never(self, ms):
|
||||
|
||||
Reference in new issue
Block a user