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

revert "issue 258 fix" #285

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions movies/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ def test9():
"Rupert Grint",
"Daniel Radcliffe",
"Emma Watson",
"Emma Watson",
],
ordered=True,
)
Expand Down Expand Up @@ -222,17 +221,14 @@ def check_single_col(actual, expected, ordered=False):
# Get data from column
try:
result = [str(list(row.values())[0]) for row in actual]
result = result if ordered else set(result)
except IndexError:
return None

# Check column data against expected values
expected = [str(value) for value in expected]

# If unordered, sort both before checking
if not ordered:
result.sort()
expected.sort()

expected = set(expected)
if result != expected:
raise check50.Mismatch("\n".join(expected), "\n".join(list(result)))

Expand Down
Binary file modified movies/movies.db
Binary file not shown.