Closes #20088: Remove model from webhook context (replaced by object_type) (#20325)

This commit is contained in:
Jeremy Stretch
2025-09-12 12:54:54 -04:00
committed by GitHub
parent cfcea7c941
commit b9567208d4
2 changed files with 2 additions and 3 deletions

View File

@@ -363,7 +363,7 @@ class EventRuleTest(APITestCase):
body = json.loads(request.body)
self.assertEqual(body['event'], 'created')
self.assertEqual(body['timestamp'], job.kwargs['timestamp'])
self.assertEqual(body['model'], 'site')
self.assertEqual(body['object_type'], 'dcim.site')
self.assertEqual(body['username'], 'testuser')
self.assertEqual(body['request_id'], str(request_id))
self.assertEqual(body['data']['name'], 'Site 1')