mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
last steps work on new docs, full complete write docstring for all objects
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from argenta.router import Router
|
||||
from argenta.command import Command
|
||||
from argenta.router.exceptions import TriggerCannotContainSpacesException
|
||||
from argenta.router.exceptions import TriggerContainSpacesException
|
||||
|
||||
import unittest
|
||||
|
||||
@@ -14,7 +14,7 @@ class TestRouter(unittest.TestCase):
|
||||
|
||||
def test_register_command_with_spaces_in_trigger(self):
|
||||
router = Router()
|
||||
with self.assertRaises(TriggerCannotContainSpacesException):
|
||||
with self.assertRaises(TriggerContainSpacesException):
|
||||
@router.command(Command(trigger='command with spaces'))
|
||||
def test():
|
||||
return 'correct result'
|
||||
|
||||
Reference in New Issue
Block a user