You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test_processing_repositories.py was removed to allow for certain features to work properly in the CLI. This required removing the .json string for now, which is what the test cases referenced.
Example
old testing suite
def test_process_repo_entropy(repository_paths: dict[str, pathlib.Path]) -> None:
"""
Testing process_repo_entropy produces the expected JSON output for given repositories.
"""
for label, repo_path in repository_paths.items():
# Call the function and get the JSON output
json_string = process_repo_entropy(str(repo_path))
# Check that the JSON string is not empty
assert json_string
# Load the JSON string into a dictionary
entropy_data = json.loads(json_string)
# Check for expected keys in the JSON output
expected_keys = [
"repo_path",
"normalized_total_entropy",
"number_of_commits",
"number_of_files",
"time_range_of_commits",
"file_level_entropy",
]
# Check if all expected keys are present in the entropy_data
assert all(key in entropy_data for key in expected_keys)
Would you like to work on a solution for this?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Existing issue check
Description
The
test_processing_repositories.py
was removed to allow for certain features to work properly in the CLI. This required removing the .json string for now, which is what the test cases referenced.Example
old testing suite
Would you like to work on a solution for this?
The text was updated successfully, but these errors were encountered: