Skip to content

Commit

Permalink
fix: remove validation for decimal field not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
vi3k6i5 committed May 17, 2021
1 parent 40a8fce commit 265955a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 35 deletions.
2 changes: 0 additions & 2 deletions django_spanner/base.py
Expand Up @@ -17,7 +17,6 @@
from .introspection import DatabaseIntrospection
from .operations import DatabaseOperations
from .schema import DatabaseSchemaEditor
from .validation import DatabaseValidation


class DatabaseWrapper(BaseDatabaseWrapper):
Expand Down Expand Up @@ -104,7 +103,6 @@ class DatabaseWrapper(BaseDatabaseWrapper):
introspection_class = DatabaseIntrospection
ops_class = DatabaseOperations
client_class = DatabaseClient
validation_class = DatabaseValidation

@property
def instance(self):
Expand Down
10 changes: 10 additions & 0 deletions django_spanner/features.py
Expand Up @@ -1027,12 +1027,20 @@ class DatabaseFeatures(BaseDatabaseFeatures):
"db_functions.math.test_ceil.CeilTests.test_null", # noqa
"db_functions.math.test_ceil.CeilTests.test_transform", # noqa
"db_functions.math.test_cos.CosTests.test_null", # noqa
"db_functions.math.test_cos.CosTests.test_transform", # noqa
"db_functions.math.test_cot.CotTests.test_null", # noqa
"db_functions.math.test_degrees.DegreesTests.test_decimal", # noqa
"db_functions.math.test_degrees.DegreesTests.test_null", # noqa
"db_functions.math.test_exp.ExpTests.test_decimal", # noqa
"db_functions.math.test_exp.ExpTests.test_null", # noqa
"db_functions.math.test_exp.ExpTests.test_transform", # noqa
"db_functions.math.test_floor.FloorTests.test_null", # noqa
"db_functions.math.test_ln.LnTests.test_decimal", # noqa
"db_functions.math.test_ln.LnTests.test_null", # noqa
"db_functions.math.test_ln.LnTests.test_transform", # noqa
"db_functions.math.test_log.LogTests.test_decimal", # noqa
"db_functions.math.test_log.LogTests.test_null", # noqa
"db_functions.math.test_mod.ModTests.test_float", # noqa
"db_functions.math.test_mod.ModTests.test_null", # noqa
"db_functions.math.test_power.PowerTests.test_decimal", # noqa
"db_functions.math.test_power.PowerTests.test_float", # noqa
Expand All @@ -1041,7 +1049,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
"db_functions.math.test_radians.RadiansTests.test_null", # noqa
"db_functions.math.test_round.RoundTests.test_null", # noqa
"db_functions.math.test_sin.SinTests.test_null", # noqa
"db_functions.math.test_sqrt.SqrtTests.test_decimal", # noqa
"db_functions.math.test_sqrt.SqrtTests.test_null", # noqa
"db_functions.math.test_sqrt.SqrtTests.test_transform", # noqa
"db_functions.math.test_tan.TanTests.test_null", # noqa
"db_functions.tests.FunctionTests.test_func_transform_bilateral", # noqa
"db_functions.tests.FunctionTests.test_func_transform_bilateral_multivalue", # noqa
Expand Down
33 changes: 0 additions & 33 deletions django_spanner/validation.py

This file was deleted.

0 comments on commit 265955a

Please sign in to comment.