@@ -2962,7 +2962,7 @@ def test_materialization_kafka_first_job_execution(self, mocker):
2962
2962
mocker .patch ("hsfs.util.get_job_url" )
2963
2963
mocker .patch (
2964
2964
"hsfs.core.kafka_engine.kafka_get_offsets" ,
2965
- return_value = " tests_offsets" ,
2965
+ return_value = "tests_offsets" ,
2966
2966
)
2967
2967
mocker .patch (
2968
2968
"hsfs.core.job_api.JobApi.last_execution" ,
@@ -3004,7 +3004,7 @@ def test_materialization_kafka_first_job_execution(self, mocker):
3004
3004
# Assert
3005
3005
assert mock_python_engine_kafka_produce .call_count == 4
3006
3006
job_mock .run .assert_called_once_with (
3007
- args = "defaults tests_offsets" ,
3007
+ args = "defaults -initialCheckPointString tests_offsets" ,
3008
3008
await_termination = False ,
3009
3009
)
3010
3010
@@ -3020,7 +3020,7 @@ def test_materialization_kafka_skip_offsets(self, mocker):
3020
3020
mocker .patch ("hsfs.util.get_job_url" )
3021
3021
mocker .patch (
3022
3022
"hsfs.core.kafka_engine.kafka_get_offsets" ,
3023
- return_value = " tests_offsets" ,
3023
+ return_value = "tests_offsets" ,
3024
3024
)
3025
3025
3026
3026
mocker .patch ("hopsworks_common.client.get_instance" )
@@ -3061,7 +3061,7 @@ def test_materialization_kafka_skip_offsets(self, mocker):
3061
3061
# Assert
3062
3062
assert mock_python_engine_kafka_produce .call_count == 4
3063
3063
job_mock .run .assert_called_once_with (
3064
- args = "defaults tests_offsets" ,
3064
+ args = "defaults -initialCheckPointString tests_offsets" ,
3065
3065
await_termination = False ,
3066
3066
)
3067
3067
@@ -3077,7 +3077,7 @@ def test_materialization_kafka_topic_doesnt_exist(self, mocker):
3077
3077
mocker .patch ("hsfs.util.get_job_url" )
3078
3078
mocker .patch (
3079
3079
"hsfs.core.kafka_engine.kafka_get_offsets" ,
3080
- side_effect = ["" , " tests_offsets" ],
3080
+ side_effect = ["" , "tests_offsets" ],
3081
3081
)
3082
3082
3083
3083
mocker .patch ("hopsworks_common.client.get_instance" )
@@ -3115,7 +3115,7 @@ def test_materialization_kafka_topic_doesnt_exist(self, mocker):
3115
3115
# Assert
3116
3116
assert mock_python_engine_kafka_produce .call_count == 4
3117
3117
job_mock .run .assert_called_once_with (
3118
- args = "defaults tests_offsets" ,
3118
+ args = "defaults -initialCheckPointString tests_offsets" ,
3119
3119
await_termination = False ,
3120
3120
)
3121
3121
0 commit comments