Skip to content

Commit

Permalink
Fix mocking in test_python
Browse files Browse the repository at this point in the history
  • Loading branch information
aversey committed Jun 28, 2024
1 parent d17b9d5 commit c9a08f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/tests/engine/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -2978,6 +2978,7 @@ def test_write_training_dataset(self, mocker):

def test_write_training_dataset_query_td(self, mocker, backend_fixtures):
# Arrange
mocker.patch("hsfs.client.get_instance")
mocker.patch("hsfs.engine.get_type")
mocker.patch("hsfs.core.training_dataset_job_conf.TrainingDatasetJobConf")
mock_job = mocker.patch("hsfs.core.job.Job")
Expand Down Expand Up @@ -3022,6 +3023,7 @@ def test_write_training_dataset_query_td(self, mocker, backend_fixtures):

def test_write_training_dataset_query_fv(self, mocker, backend_fixtures):
# Arrange
mocker.patch("hsfs.client.get_instance")
mocker.patch("hsfs.engine.get_type")
mocker.patch("hsfs.core.training_dataset_job_conf.TrainingDatasetJobConf")
mock_job = mocker.patch("hsfs.core.job.Job")
Expand Down Expand Up @@ -3073,6 +3075,7 @@ def test_write_training_dataset_query_fv(self, mocker, backend_fixtures):

def test_create_hive_connection(self, mocker):
# Arrange
mocker.patch("hopsworks.client.get_instance")
mocker.patch("hsfs.client.get_instance")
mock_pyhive_conn = mocker.patch("pyhive.hive.Connection")

Expand Down

0 comments on commit c9a08f8

Please sign in to comment.