logger best practices
This commit is contained in:
		
							
								
								
									
										0
									
								
								inkycal/tests/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								inkycal/tests/__init__.py
									
									
									
									
									
										Normal file
									
								
							| @@ -80,7 +80,7 @@ class module_test(unittest.TestCase): | ||||
|             module = Module(test) | ||||
|             im_black, im_colour = module.generate_image() | ||||
|             print('OK') | ||||
|             if use_preview == True and environment == 'Raspberry': | ||||
|             if use_preview and environment == 'Raspberry': | ||||
|                 preview(merge(im_black, im_colour)) | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -181,7 +181,7 @@ class module_test(unittest.TestCase): | ||||
|                 module = Module(test) | ||||
|                 im_black, im_colour = module.generate_image() | ||||
|                 print('OK') | ||||
|                 if use_preview == True and environment == 'Raspberry': | ||||
|                 if use_preview and environment == 'Raspberry': | ||||
|                     preview(merge(im_black, im_colour)) | ||||
|         else: | ||||
|             print('No key given, omitted testing') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user