Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
SajidAlamQB committed Aug 16, 2023
1 parent b2062ad commit 7e06695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kedro-datasets/tests/spark/test_deltatable_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def test_exists_raises_error(self, mocker):
"_get_spark",
side_effect=AnalysisException("Other Exception", []),
)
with pytest.raises(DataSetError, match="Other Exception"):
delta_ds.exists()


@pytest.mark.parametrize("is_async", [False, True])
def test_parallel_runner(self, is_async):
Expand Down
2 changes: 2 additions & 0 deletions kedro-datasets/tests/spark/test_spark_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ def test_exists_raises_error(self, mocker):
"_get_spark",
side_effect=AnalysisException("Other Exception", []),
)
with pytest.raises(DataSetError, match="Other Exception"):
spark_data_set.exists()

@pytest.mark.parametrize("is_async", [False, True])
def test_parallel_runner(self, is_async, spark_in):
Expand Down

0 comments on commit 7e06695

Please sign in to comment.