F

Flyte enables you to build & deploy data & ML pipelines, hassle-free. The infinitely scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks. Explore and Join the Flyte Community!

Guidance on Mocking File Sensor

Summary

The user is seeking guidance on how to properly mock and unit test a file sensor. They reference a specific GitHub link for additional context and mention that if there is a network call in sensor.poke(), it can be mocked as well. The user has successfully mocked FileSensor using @patch and set its return value to mock_file_sensor.poke = True, indicating that it is currently working as expected. They express gratitude for a quick reply.

Status
resolved
Tags
    Source
    #ask-the-community