mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	without targets it wont work
This commit is contained in:
		| @@ -36,11 +36,13 @@ class NotificationTests(BaseNotificationIntegrationTest): | ||||
|  | ||||
|     def test_SingleNotificationMethod(self): | ||||
|         """ensure the implementation requirements are tested""" | ||||
|         print('TESTING SingleNotificationMethod') | ||||
|  | ||||
|         class WrongImplementation(SingleNotificationMethod): | ||||
|             METHOD_NAME = 'WrongImplementation1' | ||||
|  | ||||
|             def get_targets(self): | ||||
|                 return [] | ||||
|  | ||||
|             def setup(self): | ||||
|                 print('running setup on WrongImplementation') | ||||
|                 return super().setup() | ||||
| @@ -50,11 +52,13 @@ class NotificationTests(BaseNotificationIntegrationTest): | ||||
|  | ||||
|     def test_BulkNotificationMethod(self): | ||||
|         """ensure the implementation requirements are tested""" | ||||
|         print('TESTING BulkNotificationMethod') | ||||
|  | ||||
|         class WrongImplementation(BulkNotificationMethod): | ||||
|             METHOD_NAME = 'WrongImplementation2' | ||||
|  | ||||
|             def get_targets(self): | ||||
|                 return [] | ||||
|  | ||||
|             def setup(self): | ||||
|                 print('running setup on WrongImplementation') | ||||
|                 return super().setup() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user