From f5615e5c8ae6737309aa0582a1f7bfdef60c6567 Mon Sep 17 00:00:00 2001 From: Arthur Date: Mon, 13 Nov 2023 13:22:49 -0800 Subject: [PATCH] 14132 fix tests --- netbox/extras/tests/test_event_rules.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/netbox/extras/tests/test_event_rules.py b/netbox/extras/tests/test_event_rules.py index e1d8482b5..29603208a 100644 --- a/netbox/extras/tests/test_event_rules.py +++ b/netbox/extras/tests/test_event_rules.py @@ -48,14 +48,12 @@ class EventRuleTest(APITestCase): Tag(name='Baz', slug='baz'), )) - ''' - def test_webhook_conditions(self): + def test_event_rule_conditions(self): # Create a conditional Webhook - webhook = Webhook( + webhook = EventRule( name='Conditional Webhook', type_create=True, type_update=True, - payload_url='http://localhost:9000/', conditions={ 'and': [ { @@ -79,4 +77,3 @@ class EventRuleTest(APITestCase): # Evaluate the conditions (status='active') self.assertTrue(eval_conditions(webhook, data)) - '''