Skip to content

Commit

Permalink
update test table
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Nov 20, 2024
1 parent b285c99 commit 3a29bfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion robot-server/tests/persistence/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
)
""",
"""
CREATE INDEX ix_protocol_protocol_kind ON protocol (protocol_kind),
"""
"""
CREATE TABLE analysis (
id VARCHAR NOT NULL,
protocol_id VARCHAR NOT NULL,
Expand Down Expand Up @@ -726,7 +729,8 @@ def record_statement(

normalized_actual = [_normalize_statement(s) for s in actual_statements]
normalized_expected = [_normalize_statement(s) for s in expected_statements]

print(set(normalized_actual))
print(set(normalized_expected))
# Compare ignoring order. SQLAlchemy appears to emit CREATE INDEX statements in a
# nondeterministic order that varies across runs. Although statement order
# theoretically matters, it's unlikely to matter in practice for our purposes here.
Expand Down

0 comments on commit 3a29bfd

Please sign in to comment.