Exemplo n.º 1
0
 def storage_with_req(init_context):
     assert hasattr(init_context.resources, "yup")
     assert not hasattr(init_context.resources, "not_required")
     assert not hasattr(init_context.resources, "kjdkfjdkfje")
     called["called"] = True
     return create_mem_system_storage_data(init_context)
Exemplo n.º 2
0
 def storage_with_req(init_context):
     return create_mem_system_storage_data(init_context)
Exemplo n.º 3
0
 def no_config_storage(init_context):
     called["called"] = True
     return create_mem_system_storage_data(init_context)
Exemplo n.º 4
0
 def test_storage(init_context):
     assert init_context.system_storage_config[
         "value"] == "secret testing value!!"
     it["ran"] = True
     return create_mem_system_storage_data(init_context)
Exemplo n.º 5
0
 def no_config_storage(init_context):
     it["ran"] = True
     return create_mem_system_storage_data(init_context)
Exemplo n.º 6
0
 def storage_with_req(init_context):
     assert hasattr(init_context.resources, 'yup')
     assert not hasattr(init_context.resources, 'not_required')
     assert not hasattr(init_context.resources, 'kjdkfjdkfje')
     called['called'] = True
     return create_mem_system_storage_data(init_context)
 def storage(init_context):
     called['called'] = True
     return create_mem_system_storage_data(init_context)