We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59eaeeb commit 363b566Copy full SHA for 363b566
tests/test_serverless/test_worker.py
@@ -267,7 +267,9 @@ async def test_run_worker_generator_handler_exception(
267
# Test generator handler
268
generator_config = {
269
"handler": generator_handler_exception, "refresh_worker": True}
270
+ os.environ["RUNPOD_ENDPOINT_ID"] = "test_endpoint_id"
271
runpod.serverless.start(generator_config)
272
+ os.environ.pop("RUNPOD_ENDPOINT_ID")
273
274
assert mock_stream_result.call_count == 1
275
assert not mock_run_job.called
0 commit comments