最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - Why are my local code changes not reflected in Airflow using Breeze? - Stack Overflow

programmeradmin3浏览0评论

I am trying to develop a new feature for Airflow and want to use Breeze for testing. I made changes to a file in my local repository (tests/sensors/test_filesystem.py) but when I open Breeze and check the file, I can't see my modifications.

Question: How can I make Breeze load my local code changes so I can properly test my modifications?

Here's what I did so far:

  1. Cloned the Airflow repository and modified tests/sensors/test_filesystem.py in my local environment to include the following test:
# test_filesystem.py (local repository)
# (...)
    def test_task_defer(self):
        # (...)

        assert isinstance(exc.value.trigger, FileTrigger), "Trigger is not a FileTrigger"

   def test_poke_for_modification_file_not_modified(self):
        # my test code
  1. Ran breeze shell to start the Breeze container.
  2. Inside Breeze, I checked the file using:
cat tests/sensors/test_filesystem.py

But my changes were not present:

# test_filesystem.py (breeze shell)
# (...)     
    def test_task_defer(self):         
        # (...) 
         
        assert isinstance(exc.value.trigger, FileTrigger), "Trigger is not a FileTrigger"

4. I tried restarting Breeze:

breeze stop
breeze shell

but still no effect.

发布评论

评论列表(0)

  1. 暂无评论