Skip to content

Commit

Permalink
double-check that python and SQL tests fail properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mathemancer committed Jun 1, 2023
1 parent b257a84 commit f1389d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/sql/test_0_msar.sql
Expand Up @@ -132,7 +132,7 @@ CREATE OR REPLACE FUNCTION test_drop_table_name_missing_no_if_exists() RETURNS S
BEGIN
RETURN NEXT throws_ok(
'SELECT msar.drop_table(''public'', ''doesntexist'', false, false);',
'42P01',
'2P01',
'table "doesntexist" does not exist',
'Table dropper throws for missing table'
);
Expand Down
2 changes: 1 addition & 1 deletion db/tests/columns/operations/test_create.py
Expand Up @@ -36,7 +36,7 @@ def _check_duplicate_unique_constraint(
):
constraints_ = get_column_constraints(col_attnum, table_oid, engine)
if copy_constraints:
assert len(constraints_) == 1
assert len(constraints_) == 8
constraint = constraints_[0]
assert constraint.contype == "u"
assert set(constraint.conkey) == set(con_attnums)
Expand Down

0 comments on commit f1389d1

Please sign in to comment.