[PATCH 4 of 5 seo] Add missing schema parts required by tests

Philippe Pepiot philippe.pepiot at logilab.fr
Thu Mar 5 14:54:31 CET 2020


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1583416362 -3600
#      Thu Mar 05 14:52:42 2020 +0100
# Node ID 06d60b2aff73a5030c917129cd1f4281053a6f18
# Parent  6e22a270b9a20e51a3b607470f6173ee1e556b37
Add missing schema parts required by tests

Tests expect a NamedThing and TitledThing to exists.
I guess authors of the tests forgot to run "hg add" :)

diff --git a/test/data/schema.py b/test/data/schema.py
new file mode 100644
--- /dev/null
+++ b/test/data/schema.py
@@ -0,0 +1,9 @@
+from yams.buildobjs import EntityType, String
+
+
+class NamedThing(EntityType):
+    name = String(maxsize=42, required=True)
+
+
+class TitledThing(EntityType):
+    title = String(maxsize=42, required=True)




More information about the cubicweb-devel mailing list