From: Daniele Varrazzo Date: Fri, 15 Apr 2022 05:33:12 +0000 (+0200) Subject: test(enum): disable Enum random testing X-Git-Tag: 3.1~137^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=304bc2f836679a0d809c5cc7b3397aebc61081ca;p=thirdparty%2Fpsycopg.git test(enum): disable Enum random testing --- diff --git a/tests/fix_faker.py b/tests/fix_faker.py index 59e184d37..1ae19aadd 100644 --- a/tests/fix_faker.py +++ b/tests/fix_faker.py @@ -368,6 +368,13 @@ class Faker: else: assert got == want + def schema_Enum(self, cls): + # TODO: can't fake those as we would need to create temporary types + return None + + def make_Enum(self, spec): + return None + def make_float(self, spec, double=True): if random() <= 0.99: # These exponents should generate no inf