Skip to content

Commit

Permalink
ci: add more Django test apps
Browse files Browse the repository at this point in the history
fixes #353, refs #317
  • Loading branch information
timgraham committed Mar 20, 2020
1 parent 4c17987 commit 945a6a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 65 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Expand Up @@ -16,16 +16,17 @@ env:
# - DJANGO_TEST_APPS="auth_tests"
- DJANGO_TEST_APPS="backends basic"
- DJANGO_TEST_APPS="bulk_create choices custom_columns"
- DJANGO_TEST_APPS="cache"
- DJANGO_TEST_APPS="cache constraints custom_managers"
- DJANGO_TEST_APPS="custom_methods custom_pk datatypes"
- DJANGO_TEST_APPS="dates datetimes defer"
- DJANGO_TEST_APPS="defer_regress"
- DJANGO_TEST_APPS="delete_regress"
- DJANGO_TEST_APPS="delete delete_regress"
- DJANGO_TEST_APPS="db_functions db_utils"
- DJANGO_TEST_APPS="distinct_on_fields empty"
- DJANGO_TEST_APPS="expressions expressions_window"
- DJANGO_TEST_APPS="field_defaults field_subclassing file_storage file_uploads"
- DJANGO_TEST_APPS="fixtures fixtures_model_package from_db_value"
- DJANGO_TEST_APPS="distinct_on_fields empty expressions"
- DJANGO_TEST_APPS="expressions_case expressions_window"
- DJANGO_TEST_APPS="extra_regress field_defaults file_storage file_uploads filtered_relation"
- DJANGO_TEST_APPS="fixtures fixtures_model_package fixtures_regress"
- DJANGO_TEST_APPS="from_db_value flatpages_tests generic_inline_admin generic_relations"
- DJANGO_TEST_APPS="get_earliest_or_latest get_object_or_404"
- DJANGO_TEST_APPS="i18n"
- DJANGO_TEST_APPS="indexes inline_formsets introspection invalid_models_tests"
Expand All @@ -43,15 +44,19 @@ env:
- DJANGO_TEST_APPS="model_fields.test_foreignkey model_fields.test_genericipaddressfield model_fields.test_imagefield"
- DJANGO_TEST_APPS="model_fields.test_integerfield model_fields.test_manytomanyfield model_fields.test_promises"
- DJANGO_TEST_APPS="model_fields.test_slugfield model_fields.test_textfield model_fields.test_uuid"
- DJANGO_TEST_APPS="model_indexes model_regress"
- DJANGO_TEST_APPS="multiple_database mutually_referential nested_foreign_keys"
- DJANGO_TEST_APPS="null_fk null_fk_ordering null_queries one_to_one or_lookups ordering"
- DJANGO_TEST_APPS="proxy_model_inheritance proxy_models"
- DJANGO_TEST_APPS="queries.test_bulk_update queries.test_explain queries.test_iterator"
- DJANGO_TEST_APPS="queries.test_q queries.test_qs_combinators queries.test_query"
# Commented out because they take longer 2hr and TravisCI unconditionally terminates them.
# - DJANGO_TEST_APPS="queries.tests"
- DJANGO_TEST_APPS="queryset_pickle"
- DJANGO_TEST_APPS="raw_query redirects_tests reserved_names reverse_lookup"
- DJANGO_TEST_APPS="save_delete_hooks select_related"
- DJANGO_TEST_APPS="select_related_onetoone signing sitemaps_tests"
- DJANGO_TEST_APPS="string_lookup signals"
- DJANGO_TEST_APPS="select_related_onetoone select_related_regress signals"
- DJANGO_TEST_APPS="sites_framework sitemaps_tests string_lookup"
- DJANGO_TEST_APPS="test_utils"
- DJANGO_TEST_APPS="test_client test_client_regress timezones transactions"
- DJANGO_TEST_APPS="unmanaged_models update_only_fields"
Expand Down
62 changes: 5 additions & 57 deletions django_spanner/features.py
Expand Up @@ -33,13 +33,16 @@ class DatabaseFeatures(BaseDatabaseFeatures):
'basic.tests.SelectOnSaveTests.test_select_on_save_lying_update',
# django_spanner monkey patches AutoField to have a default value.
'basic.tests.ModelTest.test_hash',
'generic_relations.test_forms.GenericInlineFormsetTests.test_options',
'generic_relations.tests.GenericRelationsTests.test_unsaved_instance_on_generic_foreign_key',
'm2m_through_regress.tests.ToFieldThroughTests.test_m2m_relations_unusable_on_null_pk_obj',
'many_to_many.tests.ManyToManyTests.test_add',
'many_to_one.tests.ManyToOneTests.test_fk_assignment_and_related_object_cache',
'many_to_one.tests.ManyToOneTests.test_relation_unsaved',
'model_fields.test_durationfield.TestSerialization.test_dumping',
'model_fields.test_uuid.TestSerialization.test_dumping',
'model_fields.test_booleanfield.ValidationTest.test_nullbooleanfield_blank',
'model_regress.tests.ModelTests.test_get_next_prev_by_field_unsaved',
'one_to_one.tests.OneToOneTests.test_get_reverse_on_unsaved_object',
'one_to_one.tests.OneToOneTests.test_set_reverse_on_unsaved_object',
'one_to_one.tests.OneToOneTests.test_unsaved_object',
Expand Down Expand Up @@ -77,63 +80,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
'aggregation_regress.tests.AggregationTests.test_ticket_11293',
'defer_regress.tests.DeferRegressionTest.test_ticket_23270',
'distinct_on_fields.tests.DistinctOnTests.test_basic_distinct_on',
'expressions_case.tests.CaseDocumentationExamples.test_conditional_update_example',
'expressions_case.tests.CaseDocumentationExamples.test_simple_example',
'expressions_case.tests.CaseExpressionTests.test_annotate',
'expressions_case.tests.CaseExpressionTests.test_annotate_exclude',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_aggregation_in_condition',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_aggregation_in_predicate',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_aggregation_in_value',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_annotation_in_condition',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_annotation_in_predicate',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_annotation_in_value',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_expression_as_condition',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_expression_as_value',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_in_clause',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_join_in_condition',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_join_in_predicate',
'expressions_case.tests.CaseExpressionTests.test_annotate_with_join_in_value',
'expressions_case.tests.CaseExpressionTests.test_annotate_without_default',
'expressions_case.tests.CaseExpressionTests.test_combined_expression',
'expressions_case.tests.CaseExpressionTests.test_combined_q_object',
'expressions_case.tests.CaseExpressionTests.test_filter',
'expressions_case.tests.CaseExpressionTests.test_filter_with_aggregation_in_condition',
'expressions_case.tests.CaseExpressionTests.test_filter_with_aggregation_in_predicate',
'expressions_case.tests.CaseExpressionTests.test_filter_with_aggregation_in_value',
'expressions_case.tests.CaseExpressionTests.test_filter_with_annotation_in_condition',
'expressions_case.tests.CaseExpressionTests.test_filter_with_annotation_in_predicate',
'expressions_case.tests.CaseExpressionTests.test_filter_with_expression_as_condition',
'expressions_case.tests.CaseExpressionTests.test_filter_with_expression_as_value',
'expressions_case.tests.CaseExpressionTests.test_filter_with_join_in_condition',
'expressions_case.tests.CaseExpressionTests.test_filter_with_join_in_predicate',
'expressions_case.tests.CaseExpressionTests.test_filter_without_default',
'expressions_case.tests.CaseExpressionTests.test_in_subquery',
'expressions_case.tests.CaseExpressionTests.test_lookup_different_fields',
'expressions_case.tests.CaseExpressionTests.test_lookup_in_condition',
'expressions_case.tests.CaseExpressionTests.test_update',
'expressions_case.tests.CaseExpressionTests.test_update_big_integer',
'expressions_case.tests.CaseExpressionTests.test_update_decimal',
'expressions_case.tests.CaseExpressionTests.test_update_duration',
'expressions_case.tests.CaseExpressionTests.test_update_email',
'expressions_case.tests.CaseExpressionTests.test_update_file',
'expressions_case.tests.CaseExpressionTests.test_update_file_path',
'expressions_case.tests.CaseExpressionTests.test_update_fk',
'expressions_case.tests.CaseExpressionTests.test_update_float',
'expressions_case.tests.CaseExpressionTests.test_update_generic_ip_address',
'expressions_case.tests.CaseExpressionTests.test_update_image',
'expressions_case.tests.CaseExpressionTests.test_update_null_boolean',
'expressions_case.tests.CaseExpressionTests.test_update_null_boolean_old',
'expressions_case.tests.CaseExpressionTests.test_update_positive_integer',
'expressions_case.tests.CaseExpressionTests.test_update_positive_small_integer',
'expressions_case.tests.CaseExpressionTests.test_update_slug',
'expressions_case.tests.CaseExpressionTests.test_update_small_integer',
'expressions_case.tests.CaseExpressionTests.test_update_text',
'expressions_case.tests.CaseExpressionTests.test_update_time',
'expressions_case.tests.CaseExpressionTests.test_update_url',
'expressions_case.tests.CaseExpressionTests.test_update_uuid',
'expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_condition',
'expressions_case.tests.CaseExpressionTests.test_update_with_expression_as_value',
'expressions_case.tests.CaseExpressionTests.test_update_without_default',
'extra_regress.tests.ExtraRegressTests.test_regression_7314_7372',
'generic_relations_regress.tests.GenericRelationTests.test_annotate',
'get_earliest_or_latest.tests.TestFirstLast',
'known_related_objects.tests.ExistingRelatedInstancesTests.test_reverse_one_to_one_multi_prefetch_related',
Expand Down Expand Up @@ -167,6 +114,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
# https://github.com/orijtech/spanner-orm/issues/182
'backends.tests.DateQuotingTest.test_django_date_trunc',
'dates.tests.DatesTests.test_dates_trunc_datetime_fields',
'queryset_pickle.tests.PickleabilityTestCase.test_specialized_queryset',
# datetimes retrieved from the database with the wrong hour when
# USE_TZ = True: https://github.com/orijtech/spanner-orm/issues/193
'datetimes.tests.DateTimesTests.test_21432',
Expand Down

0 comments on commit 945a6a7

Please sign in to comment.