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:
- 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
- Ran breeze shell to start the Breeze container.
- 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.