mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 11:43:23 +08:00
TST: fix redundant partial
This commit is contained in:
committed by
Richard Frank
parent
23c9bb0a7f
commit
e33cc25265
@@ -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