def setUp(self):
        # use a mock for the api calls
        self.mockapi = Mockapi('')

        # create the app object
        self.app = App(self.mockapi)

        # create the default settings object
        self.settings = DefaultSettings(self.app)
示例#2
0
    def setUp(self):
        # use a mock for the api calls
        self.mockapi = Mockapi('')

        # create the app object
        self.app = App(self.mockapi)

        # create the client object
        self.client_id = self.mockapi.clients_list[0]['client_id']
        self.client = Client(self.app, self.client_id)
    def setUp(self):
        # use a mock for the api calls
        self.mockapi = Mockapi('')

        # create the app object
        self.app = App(self.mockapi)

        self.schema_name = 'janraintestschema'

        # create the records object
        self.records = SchemaRecords(self.app, self.schema_name)
    def setUp(self):
        # use a mock for the api calls
        self.mockapi = Mockapi('')

        # create the app object
        self.app = App(self.mockapi)

        self.schema_name = 'janraintestschema'

        self.uuid = '00000000-0000-0000-0000-000000000001'

        # create the entities object
        self.record = SchemaRecord(self.app, self.schema_name, self.uuid)
示例#5
0
    def setUp(self):
        # use a mock for the api calls
        self.mockapi = Mockapi('')

        # shortcuts to some values
        self.client_id = self.mockapi.clients_list[0]['client_id']
        self.client_settings = self.mockapi.settings['client_settings'][
            self.client_id]

        # create the app object
        self.app = App(self.mockapi)

        # create the client settings object
        self.settings = ClientSettings(self.app, self.client_id)
示例#6
0
    def setUp(self):
        # use a mock for the api calls
        self.mockapi = Mockapi('')

        # create the app object to be tested
        self.app = App(self.mockapi)