diff options
| author | Tim Graham <timograham@gmail.com> | 2017-01-28 08:19:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-28 08:19:47 -0500 |
| commit | 0de0699d94ccd078c83eadef296a0d9ccd65a62f (patch) | |
| tree | 920b38dbe28f0110743a799078e648735ff3e1cf /tests | |
| parent | a6755b29e9335723c9347a36d4000a3157b05441 (diff) | |
Fixed #27788 -- Dropped support for Oracle < 12.1.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/gis_tests/geoapp/test_functions.py | 6 | ||||
| -rw-r--r-- | tests/schema/tests.py | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/gis_tests/geoapp/test_functions.py b/tests/gis_tests/geoapp/test_functions.py index 4d3913a7a3..6b2a725ff7 100644 --- a/tests/gis_tests/geoapp/test_functions.py +++ b/tests/gis_tests/geoapp/test_functions.py @@ -305,10 +305,8 @@ class GISFunctionsTests(TestCase): for c in mpoly_qs: self.assertEqual(c.mpoly.num_points, c.num_points) - if not oracle: - # Oracle cannot count vertices in Point geometries. - for c in City.objects.annotate(num_points=functions.NumPoints('point')): - self.assertEqual(1, c.num_points) + for c in City.objects.annotate(num_points=functions.NumPoints('point')): + self.assertEqual(c.num_points, 1) @skipUnlessDBFeature("has_PointOnSurface_function") def test_point_on_surface(self): diff --git a/tests/schema/tests.py b/tests/schema/tests.py index 4f62333dba..d21f608e02 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -416,7 +416,7 @@ class SchemaTests(TransactionTestCase): field_type = columns['awesome'][0] self.assertEqual( field_type, - connection.features.introspected_boolean_field_type(new_field, created_separately=True) + connection.features.introspected_boolean_field_type(new_field) ) def test_add_field_default_transform(self): |
