Skip to content

Commit

Permalink
Add a little runner test
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
  • Loading branch information
lrcouto committed Dec 3, 2024
1 parent 21fab23 commit 9fe8ad2
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_config_loader(self):
base_params = config_loader.get("parameters", "base")
assert base_params == {}

def test_session_data_catalog(self):
def test_data_catalog(self):
bootstrap_project(Path.cwd())

# Test creating a Kedro session and verifying its data catalog
Expand All @@ -39,6 +39,12 @@ def test_session_data_catalog(self):
parameters = catalog.load("parameters")
assert isinstance(parameters, dict)

def test_default_runner(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
# Test if the runner exists
assert session.run is not None

def test_project_path(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_config_loader(self):
base_params = config_loader.get("parameters", "base")
assert base_params == {}

def test_session_data_catalog(self):
def test_data_catalog(self):
bootstrap_project(Path.cwd())

# Test creating a Kedro session and verifying its data catalog
Expand All @@ -39,6 +39,12 @@ def test_session_data_catalog(self):
parameters = catalog.load("parameters")
assert isinstance(parameters, dict)

def test_default_runner(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
# Test if the runner exists
assert session.run is not None

def test_project_path(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_config_loader(self):
base_params = config_loader.get("parameters", "base")
assert base_params == {}

def test_session_data_catalog(self):
def test_data_catalog(self):
bootstrap_project(Path.cwd())

# Test creating a Kedro session and verifying its data catalog
Expand All @@ -39,6 +39,12 @@ def test_session_data_catalog(self):
parameters = catalog.load("parameters")
assert isinstance(parameters, dict)

def test_default_runner(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
# Test if the runner exists
assert session.run is not None

def test_project_path(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_config_loader(self):
base_params = config_loader.get("parameters", "base")
assert base_params == {}

def test_session_data_catalog(self):
def test_data_catalog(self):
bootstrap_project(Path.cwd())

# Test creating a Kedro session and verifying its data catalog
Expand All @@ -39,6 +39,12 @@ def test_session_data_catalog(self):
parameters = catalog.load("parameters")
assert isinstance(parameters, dict)

def test_default_runner(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
# Test if the runner exists
assert session.run is not None

def test_project_path(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_config_loader(self):
base_params = config_loader.get("parameters", "base")
assert base_params == {}

def test_session_data_catalog(self):
def test_data_catalog(self):
bootstrap_project(Path.cwd())

# Test creating a Kedro session and verifying its data catalog
Expand All @@ -39,6 +39,12 @@ def test_session_data_catalog(self):
parameters = catalog.load("parameters")
assert isinstance(parameters, dict)

def test_default_runner(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
# Test if the runner exists
assert session.run is not None

def test_project_path(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_config_loader(self):
base_params = config_loader.get("parameters", "base")
assert base_params == {}

def test_session_data_catalog(self):
def test_data_catalog(self):
bootstrap_project(Path.cwd())

# Test creating a Kedro session and verifying its data catalog
Expand All @@ -39,6 +39,12 @@ def test_session_data_catalog(self):
parameters = catalog.load("parameters")
assert isinstance(parameters, dict)

def test_default_runner(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
# Test if the runner exists
assert session.run is not None

def test_project_path(self):
bootstrap_project(Path.cwd())
with KedroSession.create(project_path=Path.cwd()) as session:
Expand Down

0 comments on commit 9fe8ad2

Please sign in to comment.