As stated in https://gerrit.wikimedia.org/r/#/c/401377/4/scripts/maintenance/download_dump.py@49 and in https://phabricator.wikimedia.org/T123885 , the download_dump.py isn't meant to be a maintenance script, it should be placed in the scripts directory.
|pywikibot/core : master||download_dump: Move the file to `scripts`|
|Open||None||T183663 Improve the maintenance script that download Wikimedia database dump|
|Open||rafidaslam||T184033 download_dump.py: Move the file location from `scripts/maintenance` to `scripts`|
This was done at my request during code review because this script wasnt being tested with tests/script_tests.py which it should be.
This script is not a maintenance script. maintenance scripts are not tested, because they are used for scripts used to maintain pywikibot only.
scripts has a wide variety of contents, including tools which dont do anything, like version & shell, and scripts which only work on wikimedia sites, like all of the Wikidata specific scripts. Those are not reasons to put it under a different directory.
If anyone is insisting that it must be under maintenance, then they must improve the test framework to test maintenance scripts also.
Otherwise I turn off all pywikibot GCI tasks related to this script because they are bypassing the test suite as it exists.