|
98 | 98 | USE_TZ = False |
99 | 99 |
|
100 | 100 | TEST_RUNNER = "testapp.runners.ExcludedTestSuiteRunner" |
| 101 | + |
| 102 | +# Test exclusions for features not supported by SQL Server or requiring special handling |
| 103 | +# Community contributions welcome to implement these features incrementally |
101 | 104 | EXCLUDED_TESTS = [ |
102 | 105 | 'aggregation_regress.tests.AggregationTests.test_annotation_with_value', |
103 | 106 | 'aggregation.tests.AggregateTestCase.test_distinct_on_aggregate', |
|
298 | 301 | 'indexes.tests.SchemaIndexesTests.test_alter_field_unique_false_removes_deferred_sql', |
299 | 302 | 'backends.base.test_base.ExecuteWrapperTests.test_wrapper_debug', |
300 | 303 |
|
301 | | - # Composite primary key tests - not supported in SQL Server |
302 | | - 'inspectdb.tests.InspectDBTransactionalTests.test_composite_primary_key', |
303 | | - |
304 | 304 | ] |
305 | 305 |
|
| 306 | +# Django 5.0 specific exclusions - these tests fail due to SQL Server limitations |
| 307 | +if VERSION >= (5, 0): |
| 308 | + EXCLUDED_TESTS.extend([ |
| 309 | + # Generated field 5.0.6 tests |
| 310 | + 'migrations.test_operations.OperationTests.test_invalid_generated_field_changes_on_rename_virtual', |
| 311 | + 'migrations.test_operations.OperationTests.test_invalid_generated_field_changes_on_rename_stored', |
| 312 | + ]) |
| 313 | + |
| 314 | +# Django 5.1 specific exclusions - these tests fail due to SQL Server limitations |
| 315 | +if VERSION >= (5, 1): |
| 316 | + EXCLUDED_TESTS.extend([ |
| 317 | + # Composite primary key tests - not supported in SQL Server |
| 318 | + 'inspectdb.tests.InspectDBTransactionalTests.test_composite_primary_key', |
| 319 | + ]) |
| 320 | + |
| 321 | +# Django 5.2 specific exclusions - tuple lookups not supported in SQL Server |
| 322 | +# These are good candidates for community contributions - see GitHub issues |
| 323 | +if VERSION >= (5, 2): |
| 324 | + EXCLUDED_TESTS.extend([ |
| 325 | + # Tuple lookup tests - SQL Server doesn't support (col1, col2) IN syntax |
| 326 | + # TODO: Implement tuple lookup handling for SQL Server compatibility |
| 327 | + 'foreign_object.test_tuple_lookups.TupleLookupsTests.test_exact', |
| 328 | + 'foreign_object.test_tuple_lookups.TupleLookupsTests.test_gt', |
| 329 | + 'foreign_object.test_tuple_lookups.TupleLookupsTests.test_gte', |
| 330 | + 'foreign_object.test_tuple_lookups.TupleLookupsTests.test_in', |
| 331 | + 'foreign_object.test_tuple_lookups.TupleLookupsTests.test_lt', |
| 332 | + 'foreign_object.test_tuple_lookups.TupleLookupsTests.test_lte', |
| 333 | + 'foreign_object.test_tuple_lookups.TupleLookupsTests.test_tuple_in_subquery', |
| 334 | + 'foreign_object.test_agnostic_order_trimjoin.TestLookupQuery.test_deep_mixed_backward', |
| 335 | + |
| 336 | + # Aggregation with filtered references |
| 337 | + # TODO: Fix complex aggregation queries with outer references |
| 338 | + 'aggregation.test_filter_argument.FilteredAggregateTests.test_filtered_aggregrate_ref_in_subquery_annotation', |
| 339 | + |
| 340 | + # JSONField test failures |
| 341 | + # TODO: Fix JSONField update with CASE WHEN handling |
| 342 | + 'expressions.tests.BasicExpressionsTests.test_update_jsonfield_case_when_key_is_null', |
| 343 | + |
| 344 | + # Other Django 5.2 specific failures |
| 345 | + # Add more as they are identified by the community |
| 346 | + ]) |
| 347 | + |
306 | 348 | REGEX_TESTS = [ |
307 | 349 | 'lookup.tests.LookupTests.test_regex', |
308 | 350 | 'lookup.tests.LookupTests.test_regex_backreferencing', |
|
0 commit comments