mirror of
https://github.com/shadoll/scatcher.git
synced 2026-02-04 11:03:23 +00:00
Add unit tests for answer schema, request data schema, base controller, and history manager
This commit is contained in:
16
tests/test_answer_schema.py
Normal file
16
tests/test_answer_schema.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import unittest
|
||||
from schema.answer import Answer
|
||||
from schema.status import Status
|
||||
|
||||
|
||||
class TestAnswerSchema(unittest.TestCase):
|
||||
def test_answer_creation(self):
|
||||
status = Status.success
|
||||
message = "Test message"
|
||||
answer = Answer(status=status, message=message)
|
||||
self.assertEqual(answer.status, status)
|
||||
self.assertEqual(answer.message, message)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user