Switched table definition order at test_dal.py
This commit is contained in:
@@ -759,18 +759,18 @@ class TestDALDictImportExport(unittest.TestCase):
|
|||||||
|
|
||||||
mpfc = "Monty Python's Flying Circus"
|
mpfc = "Monty Python's Flying Circus"
|
||||||
dbdict4 = {"uri": DEFAULT_URI,
|
dbdict4 = {"uri": DEFAULT_URI,
|
||||||
"tables":[{"tablename": "staff",
|
"tables":[{"tablename": "tvshow",
|
||||||
|
"fields": [{"fieldname": "name",
|
||||||
|
"default":mpfc},
|
||||||
|
{"fieldname": "rating",
|
||||||
|
"type":"double"}]},
|
||||||
|
{"tablename": "staff",
|
||||||
"fields": [{"fieldname": "name",
|
"fields": [{"fieldname": "name",
|
||||||
"default":"Michael"},
|
"default":"Michael"},
|
||||||
{"fieldname": "food",
|
{"fieldname": "food",
|
||||||
"default":"Spam"},
|
"default":"Spam"},
|
||||||
{"fieldname": "tvshow",
|
{"fieldname": "tvshow",
|
||||||
"type": "reference tvshow"}]},
|
"type": "reference tvshow"}]}]}
|
||||||
{"tablename": "tvshow",
|
|
||||||
"fields": [{"fieldname": "name",
|
|
||||||
"default":mpfc},
|
|
||||||
{"fieldname": "rating",
|
|
||||||
"type":"double"}]}]}
|
|
||||||
db4 = DAL(**dbdict4)
|
db4 = DAL(**dbdict4)
|
||||||
assert "staff" in db4.tables
|
assert "staff" in db4.tables
|
||||||
assert "name" in db4.staff
|
assert "name" in db4.staff
|
||||||
|
|||||||
Reference in New Issue
Block a user