Opened 12 years ago

Closed 12 years ago

#21005 closed Bug (fixed)

Schema tests are language-dependant

Reported by: Claude Paroz Owned by: Claude Paroz <claude@…>
Component: Migrations Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no
Pull Requests:How to create a pull request

Description

In the new schema tests, there is a check about the content of message errors in SchemaTests.delete_tables. Some databases are returning translated error messages, so this is too fragile. An alternative would be to test if the table exists before trying to delete it.

Change History (5)

comment:1 by Simon Charette, 12 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz, 12 years ago

Has patch: set

by Claude Paroz, 12 years ago

Attachment: 21005-1.2.diff added

comment:3 by Simon Charette, 12 years ago

Triage Stage: AcceptedReady for checkin

Tests pass and the new approach is way less convoluted.

comment:4 by Claude Paroz <claude@…>, 12 years ago

Owner: set to Claude Paroz <claude@…>
Resolution: fixed
Status: newclosed

In b04f8ddbaa57daaefee9eacbab1eaad437d8ff0a:

Fixed #21005 -- Made schema tests language-independent

Thanks Simon Charette for the review.

Note: See TracTickets for help on using tickets.
Back to Top