@@ -108,6 +108,18 @@ def test_create_error_type(self):
108108
109109 self .assertEqual (0 , result .exit_code )
110110
111+ # def test_create_invalid_type(self):
112+ # """
113+ # Testing that when an invalid type is passed to the create option, an exception occurs.
114+ # :return:
115+ # """
116+ # given_result = self.runner.invoke(main, 'create -t blarg -n "Argle Bargle"')
117+ # given_result = given_result.exception
118+ #
119+ # expected_result = "Invalid topic type."
120+ #
121+ # return self.assertEqual(expected_result, given_result)
122+
111123 def test_create_process_type (self ):
112124 """
113125 Testing that when creating an process type record it is added.
@@ -270,6 +282,18 @@ def test_delete_error_type_protected(self):
270282 self .assertIn (expected_result , result .output )
271283 self .assertEqual (0 , result .exit_code )
272284
285+ # def test_delete_invalid_type(self):
286+ # """
287+ # Testing that when an invalid type is passed to the delete option, an exception occurs.
288+ # :return:
289+ # """
290+ # given_result = self.runner.invoke(main, 'delete -t blarg -n "Argle Bargle"')
291+ # given_result = given_result.exception
292+ #
293+ # expected_result = "Invalid topic. Unable to delete instance."
294+ #
295+ # return self.assertEqual(expected_result, given_result)
296+
273297 def test_delete_process_type (self ):
274298 """
275299 Testing that when deleting an process type record not on the protected list, it is deleted.
@@ -466,6 +490,20 @@ def test_update_error_type_protected(self):
466490
467491 self .assertIn (expected_result , result .output )
468492
493+ # def test_update_invalid_type(self):
494+ # """
495+ # Testing that when an invalid type is passed to the update option, an exception occurs.
496+ # :return:
497+ # """
498+ # given_result = self.runner.invoke(
499+ # main, 'update -t blarg -i "Testing" -n "Argle Bargle"'
500+ # )
501+ # given_result = given_result.exception
502+ #
503+ # expected_result = "Invalid topic. Unable to delete instance."
504+ #
505+ # return self.assertEqual(expected_result, given_result)
506+
469507 def test_update_process_type (self ):
470508 """
471509 Testing that when updating a process type record not on the protected list, it is updated.
0 commit comments