Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer committed Jan 7, 2025
1 parent 7e91dba commit 5ff75c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions backend/tests/daily/connectors/google_drive/consts_and_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,13 @@ def print_discrepencies(
expected: set[str],
retrieved: set[str],
) -> None:
# Filter retrieved set to only include valid prefixed items
filtered_retrieved = filter_invalid_prefixes(retrieved)
if expected != filtered_retrieved:
if expected != retrieved:
print(expected)
print(filtered_retrieved)
print(retrieved)
print("Extra:")
print(filtered_retrieved - expected)
print(retrieved - expected)
print("Missing:")
print(expected - filtered_retrieved)
print(expected - retrieved)


def _get_expected_file_content(file_id: int) -> str:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def assert_correct_access_for_user(
filtered_retrieved_file_names = filter_invalid_prefixes(retrieved_file_names)
print_discrepencies(expected_file_names, filtered_retrieved_file_names)

assert expected_file_names == retrieved_file_names
assert expected_file_names == filtered_retrieved_file_names


# This function is supposed to map to the group_sync.py file for the google drive connector
Expand Down

0 comments on commit 5ff75c4

Please sign in to comment.