From eb7870c2c1474883fc90a65e583ddc87045a491d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 23 Aug 2024 10:14:00 -0700 Subject: [PATCH] fix: Convert generated repo map to string before comparison --- tests/basic/test_repomap.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/basic/test_repomap.py b/tests/basic/test_repomap.py index fa8eca47b..1b99cca0b 100644 --- a/tests/basic/test_repomap.py +++ b/tests/basic/test_repomap.py @@ -446,15 +446,12 @@ class TestRepoMapAllLanguages(unittest.TestCase): other_files = [str(f) for f in sample_code_base.rglob("*") if f.is_file()] # Generate the repo map - generated_map = repo_map.get_repo_map([], other_files) + generated_map_str = repo_map.get_repo_map([], other_files) # Read the expected map from the file with open(expected_map_file, "r") as f: expected_map = f.read().strip() - # Convert the generated map to a string representation - generated_map_str = repo_map.map_to_string(generated_map).strip() - # Compare the generated map with the expected map if generated_map_str != expected_map: # If they differ, show the differences and fail the test