Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bart0003 committed Dec 26, 2023
1 parent 1472aad commit f205792
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/core_tests/message_test/test_headers_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

class TestHeadersValidator(TestCase):
def test_valid_true(self):
message = SmartAppFromMessage({}, headers=[('test_header', b'result')], validators=[MessageHeadersValidator()])
message = SmartAppFromMessage({"messageName": "ANSWER_FROM_USER", "messageId": 1111},
headers=[('test_header', b'result')], validators=[MessageHeadersValidator()])
self.assertTrue(message.validate())

def test_valid_false(self):
message = SmartAppFromMessage({}, headers=[], validators=[MessageHeadersValidator()])
message = SmartAppFromMessage({"messageName": "ANSWER_FROM_USER", "messageId": 1111},
headers=[], validators=[MessageHeadersValidator()])
self.assertFalse(message.validate())

0 comments on commit f205792

Please sign in to comment.