]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Improve range random testing
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 23 Sep 2021 01:15:52 +0000 (03:15 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 23 Sep 2021 01:15:52 +0000 (03:15 +0200)
commit11fd7e90b26925f3ec2eab4593af81fcc37a9cd8
tree20568ea80a5ba760b4336d9f1673ba3fce726ec6
parentfb4c7655da2b576f182e07a5ba249a8ae3d1c323
Improve range random testing

Make sure to create a numrange[] field instead of text, which would have
happened if the random selection in Faker.types_names() had picked an
array whose first object is an empty range.

Also extend the tests to certain binary range types which previously
couldn't be managed.
tests/fix_faker.py