Skip to content

Commit

Permalink
Update test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchtr committed Nov 22, 2023
1 parent 0701662 commit 365ca6d
Show file tree
Hide file tree
Showing 27 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/fondant/component/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,6 @@ def _execute_component(

# Clear divisions if component spec indicates that the index is changed
if self._infer_index_change():
# TODO: might causing issues for merging components
# to guarantee fast merging of large dataframes we need to keep the division information
dataframe.clear_divisions()

return dataframe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"pipeline_name": "example_pipeline",
"base_path": "tests/example_data/subsets_input/mock_base_path",
"base_path": "tests/component/examples/mock_base_path",
"run_id": "example_pipeline_123",
"component_id": "component_1",
"cache_key": "00"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"pipeline_name": "test_pipeline",
"base_path": "tests/examples/example_data",
"base_path": "tests/component/examples/data",
"run_id": "test_pipeline_12345",
"component_id": "67890"
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/component/examples/mock_base_path/example_pipeline/example_pipeline_2023/component_1/manifest.json
4 changes: 2 additions & 2 deletions tests/component/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from fondant.core.component_spec import ComponentSpec
from fondant.core.manifest import Manifest, Metadata

components_path = Path(__file__).parent.parent / "examples/example_specs/components"
base_path = Path(__file__).parent.parent / "examples/example_specs/mock_base_path"
components_path = Path(__file__).parent / "examples/component_specs"
base_path = Path(__file__).parent / "examples/mock_base_path"

N_PARTITIONS = 2

Expand Down
4 changes: 2 additions & 2 deletions tests/component/test_data_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from fondant.core.component_spec import ComponentSpec
from fondant.core.manifest import Manifest

manifest_path = Path(__file__).parent.parent / "examples/example_data/manifest.json"
manifest_path = Path(__file__).parent / "examples/data/manifest.json"
component_spec_path = (
Path(__file__).parent.parent / "examples/example_data/components/1.yaml"
Path(__file__).parent / "examples/data/components/1.yaml"
)

NUMBER_OF_TEST_ROWS = 151
Expand Down

This file was deleted.

0 comments on commit 365ca6d

Please sign in to comment.