Coverage for tests/pipelines/data_science/test_nodes.py: 100%

14 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-27 09:52 +0000

1import pytest 

2from kedro.config import ConfigLoader 

3from kedro.framework.context import KedroContext 

4from kedro.framework.hooks import _create_hook_manager 

5 

6from pathlib import Path 

7 

8 

9@pytest.fixture 

10def config_loader(): 

11 return ConfigLoader(conf_source=str(Path.cwd())) 

12 

13 

14@pytest.fixture 

15def project_context(config_loader): 

16 return KedroContext( 

17 package_name="quafel", 

18 project_path=Path.cwd(), 

19 config_loader=config_loader, 

20 hook_manager=_create_hook_manager(), 

21 ) 

22 

23 

24class TestProjectContext: 

25 def test_project_path(self, project_context): 

26 assert project_context.project_path == Path.cwd()