UseCases.libs.JSONDataSerializer.export.020_add_new.Case001 package

Submodules

UseCases.libs.JSONDataSerializer.export.020_add_new.Case001.CallCase module

Import of branches by jsondata.JSONDataSerializer.branch_import().

class UseCases.libs.JSONDataSerializer.export.020_add_new.Case001.CallCase.CallUnits(methodName='runTest')[source]

Bases: unittest.case.TestCase

Base branch import by branch_add.

testCase000()[source]

Load initial main/master data, and validate it with standard draft4.

testCase500()[source]

Import and add a branch into initial main/master data, replaces the ‘phoneNumber’ list.

Use insertion point:
target = configdata.data
for file:

‘branch0.json’: #—

{
“phoneNumber”:
“type”:”home”, “number”:”111 222-333”

}

]

}

#—

Validate branch with branch schema, do not insert ‘$schema’ key.

testCase501()[source]

Import another branch into initial main/master data, and validate it with branch schema.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch1.json’ #—

{
“type”:”home2”, “number”:”222 222-333”

}

#—

Apply ‘$schema’ key for branch/subtree of master schema.

testCase502()[source]

Import a branch into initial main/master data, and validate it with branch schema.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch2.json’ #—

{
“type”:”home2”, “number”:”333 222-333”

}

#—

Apply ‘$schema’ key for branch/subtree of master schema.

testCase510()[source]

Import a branch with erroneous key.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch2.json’ #—

{
“type”:”home2”, “number”:”333 222-333”

}

#—

with key:
‘phoneNumber’
testCase511()[source]

Import a branch with no key and mismatch of types for ‘targetnode’ and ‘branch’.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch2.json’ #—

{
“type”:”home2”, “number”:”333 222-333”

}

#—

Apply ‘$schema’ key for branch/subtree of master schema.

Module contents

Add a branch.