Skip to content

Commit

Permalink
Complete method rename, fix not-supported test
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Dec 14, 2023
1 parent 1e5c8f2 commit 1abb2f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/test/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def test_install_pip_package_not_supported(self):
with self.assertRaises(NotImplementedError):
self.spark.install_pip_package("emoji")

@skipIf(__version__.startswith('3.0.'), 'install_poetry_package not supported for Spark 3.0')
@skipIf(__version__.startswith('3.0.'), 'install_poetry_project not supported for Spark 3.0')
# provide an environment variable with path to the python binary of a virtual env that has poetry installed
@skipIf(POETRY_PYTHON_ENV not in os.environ, f'Environment variable {POETRY_PYTHON_ENV} pointing to '
f'virtual env python with poetry required')
Expand Down Expand Up @@ -253,10 +253,10 @@ def test_install_poetry_project_wrong_arguments(self):
with self.assertRaises(FileNotFoundError):
self.spark.install_poetry_project(rich_path, poetry_python="non-existing-python")

@skipUnless(__version__.startswith('3.0.'), 'install_poetry_package not supported for Spark 3.0')
def test_install_poetry_package_not_supported(self):
@skipUnless(__version__.startswith('3.0.'), 'install_poetry_project not supported for Spark 3.0')
def test_install_poetry_project_not_supported(self):
with self.assertRaises(NotImplementedError):
self.spark.install_poetry_package("./rich")
self.spark.install_poetry_project("./rich")


if __name__ == '__main__':
Expand Down

0 comments on commit 1abb2f3

Please sign in to comment.