24 lines
		
	
	
		
			463 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			463 B
		
	
	
	
		
			Python
		
	
	
	
| from unittest import mock
 | |
| 
 | |
| from logitech_receiver import desktop_notifications
 | |
| 
 | |
| 
 | |
| def test_notifications_available():
 | |
|     result = desktop_notifications.notifications_available()
 | |
| 
 | |
|     assert not result
 | |
| 
 | |
| 
 | |
| def test_init():
 | |
|     assert not desktop_notifications.init()
 | |
| 
 | |
| 
 | |
| def test_uninit():
 | |
|     assert desktop_notifications.uninit() is None
 | |
| 
 | |
| 
 | |
| def test_show():
 | |
|     dev = mock.MagicMock()
 | |
|     reason = "unknown"
 | |
|     assert desktop_notifications.show(dev, reason) is None
 |