Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Unittests & a lot of refactoring & pylint findings corrections #16

Merged
merged 26 commits into from
Jul 4, 2021

Conversation

treee111
Copy link
Owner

@treee111 treee111 commented Jul 4, 2021

closes #14

This PR introduces unittests for:

  • downloader.py
  • osm_maps_functions.py

It also refactores a lot of mainly these two .py files and corrects pylint findings across all files

treee111 added 22 commits July 3, 2021 12:26
osm_maps_functions
- read_process_input --> process_input and check_and_download_files

file_directory_functions
- read_json_file
- file- and method- comments
- unused / wrong order imports
- some minor other findings
osm_maps_functions
- read_process_input --> process_input and check_and_download_files

downloader
- download_files_if_needed --> check_and_download_files_if_needed
method calc_border_countries
- move from downloader --> osm_maps_functions
- for downloader.py
methods:
- download_land_poligons_file
- download_map
- create downloader later when all constructor values are known
- clearer flow
- constructor input parameters in lower letters
- for osm_maps_functions.py
@treee111 treee111 changed the title Parametss Control download & processing of border countries, unittests, refactoring, pylint findings Jul 4, 2021
@treee111 treee111 force-pushed the unit-tests-for-downloader branch from acd9e48 to 4d7d59f Compare July 4, 2021 20:13
@treee111 treee111 changed the title Control download & processing of border countries, unittests, refactoring, pylint findings unittests, refactoring, pylint findings Jul 4, 2021
@treee111 treee111 changed the title unittests, refactoring, pylint findings Introduce Unittests & a lot of refactoring & pylint findings corrections Jul 4, 2021
@treee111 treee111 merged commit e5a1957 into develop Jul 4, 2021
@treee111 treee111 deleted the unit-tests-for-downloader branch July 4, 2021 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

introduce unit-tests to validate functionality during development
1 participant