hussein-awala commented on PR #30306:
URL: https://github.com/apache/airflow/pull/30306#issuecomment-1484110845
> I wonder if we do not have similar cases elsewhere). It would be great to
review our "rests" folder and possibly find (and automatically prevent in the
future) similar problems. Any ideas?
I run a small script to check this, but I am not sure if it's enough:
```python
from pathlib import Path
if __name__ == '__main__':
tests_path = Path("airflow/tests")
not_discovered_files = set(tests_path.glob('**/*.py')) -
set(tests_path.glob('**/test_*.py'))
for file in not_discovered_files:
with open(file) as f:
content = f.read()
if "def test" in content or "TestCase" in content:
print(file)
```
And the output is:
```
airflow/tests/conftest.py
airflow/tests/test_utils/asserts.py
airflow/tests/test_utils/perf/perf_kit/__init__.py
airflow/tests/providers/databricks/utils/databricks.py
airflow/tests/system/utils/__init__.py
airflow/tests/system/providers/influxdb/example_influxdb.py
airflow/tests/system/providers/amazon/aws/example_lambda.py
```
After checking these files, I think we should rename
`airflow/tests/providers/databricks/utils/databricks.py`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]