Esempio n. 1
0
def test_contract_get_all(app, db, session):
    contract_data = create_test_contract_data()
    api.contract_create(contract_data, admin_context)

    assert len(api.contract_get_all(scoped_context)) == 1
Esempio n. 2
0
 def get_all(cls, context):
     all_contracts = db.contract_get_all(context)
     return cls._from_db_object_list(all_contracts)