We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dd57cc commit a152006Copy full SHA for a152006
tests/test_declare.py
@@ -337,3 +337,25 @@ class WithSuchALongPartNameThatItCrashesMySQL(dj.Part):
337
338
with pytest.raises(dj.DataJointError):
339
schema_any(WhyWouldAnyoneCreateATableNameThisLong)
340
+
341
342
+def test_table_name_with_underscores(schema_any):
343
+ """
344
+ Test issue #1150 -- Reject table names containing underscores. Tables should be in strict
345
+ CamelCase.
346
347
348
+ class TableNoUnderscores(dj.Manual):
349
+ definition = """
350
+ id : int
351
352
353
+ class Table_With_Underscores(dj.Manual):
354
355
356
357
358
+ schema_any(TableNoUnderscores)
359
+ with pytest.raises(dj.DataJointError, match="CamelCase") as e:
360
+ schema_any(Table_With_Underscores)
361
0 commit comments