diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2020-07-16 23:32:46 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-02 06:58:03 +0200 |
| commit | 06c5d3fafc6aeb96387148726713b611aeba7fa1 (patch) | |
| tree | 80a366cad2aa8caf22062d6eb5f4487c36a000e2 /tests/expressions | |
| parent | f87b0ecd37e64e7a019d472de37d0789a8790f1f (diff) | |
Fixed #32060 -- Added Random database function.
Diffstat (limited to 'tests/expressions')
| -rw-r--r-- | tests/expressions/tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py index 0ae61a6506..0da90553e4 100644 --- a/tests/expressions/tests.py +++ b/tests/expressions/tests.py @@ -16,7 +16,7 @@ from django.db.models import ( UUIDField, Value, Variance, When, ) from django.db.models.expressions import ( - Col, Combinable, CombinedExpression, Random, RawSQL, Ref, + Col, Combinable, CombinedExpression, RawSQL, Ref, ) from django.db.models.functions import ( Coalesce, Concat, Left, Length, Lower, Substr, Upper, @@ -1814,7 +1814,6 @@ class ReprTests(SimpleTestCase): ) self.assertEqual(repr(Func('published', function='TO_CHAR')), "Func(F(published), function=TO_CHAR)") self.assertEqual(repr(OrderBy(Value(1))), 'OrderBy(Value(1), descending=False)') - self.assertEqual(repr(Random()), "Random()") self.assertEqual(repr(RawSQL('table.col', [])), "RawSQL(table.col, [])") self.assertEqual(repr(Ref('sum_cost', Sum('cost'))), "Ref(sum_cost, Sum(F(cost)))") self.assertEqual(repr(Value(1)), "Value(1)") |
