def add_category(self, name):
        return flask.json.loads(
            self.client.post('/_add_category', data=dict(name=name)).data)['id']
Register category in the database and return its id
dataset/ETHPy150Open eugenkiss/Simblin/test/test_views.py/ViewTestCase.add_category