-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Closed
Labels
good first issuekind:metaHigh-level information important to the communityHigh-level information important to the community
Description
Body
During the #37874 we starts to check invalid usage of unittest.mock.Mock methods, e.g.
usage of assert <mocked_object>.called_once which always evaluated as True instead of correct one <mocked_object>.assert_called_once().
Unfortunetly not all tests are worked after changes:
- regression
- changes in code base not reflected in tests
- comparison with new objects which do not implements
__eq__ - etc.
All assert which are do not pass PGH005 rule has # noqa: PGH005 (fixme: WHAT HAPPEN IF CHANGE TO METHOD), this should be resolved.
There is no single rule how it should be done, because it might involve to fix in Airflow codebase rather than in tests.
Provider amazon
Provider microsoft.azure
-
tests/providers/microsoft/azure/hooks/test_data_lake.py(total: 1) -
tests/providers/microsoft/azure/hooks/test_cosmos.py(total: 1) -
tests/providers/microsoft/azure/hooks/test_adx.py(total: 7) -
tests/providers/microsoft/azure/hooks/test_data_factory.py(total: 1) -
tests/providers/microsoft/azure/hooks/test_synapse.py(total: 1) -
tests/providers/microsoft/azure/hooks/test_wasb.py(total: 1)
Provider celery
Committer
- I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Metadata
Metadata
Labels
good first issuekind:metaHigh-level information important to the communityHigh-level information important to the community