gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
14
tests/exceptions_test.py
Executable file
14
tests/exceptions_test.py
Executable file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Exceptions test
|
||||
"""
|
||||
|
||||
import pytest
|
||||
import unittest
|
||||
from core import exceptions
|
||||
|
||||
|
||||
class ExceptionTest(unittest.TestCase):
|
||||
def test_break_exception(self):
|
||||
with pytest.raises(exceptions.BreakException) as e:
|
||||
raise exceptions.BreakException("test message", data=[1, 2, 3])
|
||||
self.assertEqual(e.value.args[0], "test message")
|
||||
Reference in New Issue
Block a user