mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Fixed component_tests config (#1608)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							cd1353ae54
						
					
				
				
					commit
					28a72fa56b
				
			
							
								
								
									
										9
									
								
								script/component_test
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								script/component_test
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| set -e | ||||
|  | ||||
| cd "$(dirname "$0")/.." | ||||
|  | ||||
| set -x | ||||
|  | ||||
| pytest tests/component_tests | ||||
| @@ -10,4 +10,5 @@ script/ci-custom.py | ||||
| script/lint-python | ||||
| script/lint-cpp | ||||
| script/unit_test | ||||
| script/component_test | ||||
| script/test | ||||
|   | ||||
| @@ -1,5 +1,13 @@ | ||||
| """Fixtures for component tests.""" | ||||
|  | ||||
| import sys | ||||
| from pathlib import Path | ||||
|  | ||||
| # Add package root to python path | ||||
| here = Path(__file__).parent | ||||
| package_root = here.parent.parent | ||||
| sys.path.insert(0, package_root.as_posix()) | ||||
|  | ||||
| import pytest | ||||
|  | ||||
| from esphome.core import CORE | ||||
|   | ||||
		Reference in New Issue
	
	Block a user