]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
test(enum): disable Enum random testing
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 15 Apr 2022 05:33:12 +0000 (07:33 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 21 Apr 2022 14:05:46 +0000 (16:05 +0200)
tests/fix_faker.py

index 59e184d37e305039e3bb52af28476d0bd5d2f879..1ae19aadd24cd267e422cb80db0d10b55bfd2732 100644 (file)
@@ -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