Skip to content

Commit

Permalink
Set boolean expr flag to false, unskip constraint tests (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
dauinsight authored Feb 7, 2024
1 parent 4df6db3 commit 2bf66f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions mssql/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
requires_literal_defaults = True
requires_sqlparse_for_splitting = False
supports_boolean_expr_in_select_clause = False
supports_comparing_boolean_expr = False
supports_comments = True
supports_covering_indexes = True
supports_deferrable_unique_constraints = False
Expand Down
14 changes: 0 additions & 14 deletions testapp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,6 @@
'schema.tests.SchemaTests.test_autofield_to_o2o',
'schema.tests.SchemaTests.test_add_auto_field',
'prefetch_related.tests.PrefetchRelatedTests.test_m2m_prefetching_iterator_with_chunks',
'queries.test_q.QCheckTests.test_basic',
'queries.test_q.QCheckTests.test_boolean_expression',
'queries.test_q.QCheckTests.test_expression',
'constraints.tests.CheckConstraintTests.test_validate',
'constraints.tests.CheckConstraintTests.test_validate_boolean_expressions',
'constraints.tests.UniqueConstraintTests.test_model_validation_with_condition',
'constraints.tests.UniqueConstraintTests.test_validate_condition',
'constraints.tests.UniqueConstraintTests.test_validate_expression_condition',
'migrations.test_operations.OperationTests.test_create_model_with_boolean_expression_in_check_constraint',
'queries.test_qs_combinators.QuerySetSetOperationTests.test_union_in_subquery_related_outerref',
# These tests pass on SQL Server 2022 or newer
Expand All @@ -300,12 +292,6 @@
'queries.test_qs_combinators.QuerySetSetOperationTests.test_union_with_select_related_and_order',
'expressions_window.tests.WindowFunctionTests.test_limited_filter',
'schema.tests.SchemaTests.test_remove_ignored_unique_constraint_not_create_fk_index',
'constraints.tests.UniqueConstraintTests.test_validate_nullable_textfield_with_isnull_true',

# Django 5.0
'constraints.tests.CheckConstraintTests.test_validate_custom_error',
'constraints.tests.CheckConstraintTests.test_validate_nullable_jsonfield',
'constraints.tests.CheckConstraintTests.test_validate_pk_field',
]

REGEX_TESTS = [
Expand Down

0 comments on commit 2bf66f3

Please sign in to comment.