Could you please review the changes and advise if there's any section you would like me to change please?
This PR introduces several updates to our test suites to improve accuracy and robustness, and it proposes a change in file naming to better reflect the content and purpose of our scripts.
Changes:
Update Test Cases for extract_and_flag_domains:
Modified the test cases to handle pd.NA correctly, ensuring that our tests remain robust across mixed data types.
Correct Test Assertions in mark_incomplete_urls:
Aligned the test assertions with the function's logic to accurately reflect the criteria for URL completeness, especially handling special characters within URLs.
Adjust Expected Outputs in Tests:
Updated the expected outputs in our tests to match actual behaviour, focusing particularly on the handling of unsupported URL schemes and duplicate flags.
Improve Test Coverage:
Added new scenarios to our tests to thoroughly examine the interactions with the duplicate_flag and URL schemes.
File Name Change:
Propose renaming of tests/test_github_repo_request_local.py to tests/test_initial_data_preparation.py as the test cases are written for the functions in the script initial_data_preparation.py.
Wrote unit tests using PyHamcrest for the functions get_domain, is_complete_url, extract_url, and convert_http_to_https
Hi Julian,
Could you please review the changes and advise if there's any section you would like me to change please?
This PR introduces several updates to our test suites to improve accuracy and robustness, and it proposes a change in file naming to better reflect the content and purpose of our scripts.
Changes:
Update Test Cases for
extract_and_flag_domains
:pd.NA
correctly, ensuring that our tests remain robust across mixed data types.Correct Test Assertions in
mark_incomplete_urls
:Adjust Expected Outputs in Tests:
Improve Test Coverage: Added new scenarios to our tests to thoroughly examine the interactions with the
duplicate_flag
andURL schemes
.File Name Change:
tests/test_github_repo_request_local.py
totests/test_initial_data_preparation.py
as the test cases are written for the functions in the scriptinitial_data_preparation.py
.Wrote unit tests using
PyHamcrest
for the functionsget_domain
,is_complete_url
,extract_url
, andconvert_http_to_https
Thanks very much