Skip to content

Commit

Permalink
revert code
Browse files Browse the repository at this point in the history
Signed-off-by: Jitendra Gundaniya <[email protected]>
  • Loading branch information
jitu5 committed May 23, 2024
1 parent abb24fe commit 44fc7bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/tests/test_models/test_flowchart.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,13 @@ def test_get_preview_args(self):
)
assert data_node.get_preview_args() == {"nrows": 3}

def test_is_preview_enabled(self):
def test_is_preview_disabled(self):
metadata = {"kedro-viz": {"preview": False}}
dataset = CSVDataset(filepath="test.csv", metadata=metadata)
data_node = GraphNode.create_data_node(
dataset_name="dataset", tags=set(), layer=None, dataset=dataset, stats=None
)
assert data_node.is_preview_enabled() is False
assert data_node.is_preview_disabled() is True

def test_preview_data_node_metadata(self, example_data_node):
expected_preview_data = {
Expand Down

0 comments on commit 44fc7bf

Please sign in to comment.