Commit 28fad234 authored by Tomas Taraba's avatar Tomas Taraba

3395 Small indent edits

parent 67ca4d50
......@@ -34,11 +34,13 @@ def get(label_id):
query = Session.query(Labels).filter_by(id=label_id)
return query.first()
def create(label):
Session.add(label)
Session.flush()
return label
def delete(label):
Session.delete(label)
Session.flush()
......
......@@ -16,11 +16,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>
from hamcrest import assert_that, equal_to
from xivo_dao.alchemy.labels import Labels
from xivo_dao.resources.labels import dao as label_dao
from xivo_dao.resources.utils.search import SearchResult
from xivo_dao.tests.test_dao import DAOTestCase
from xivo_dao.resources.labels import dao as label_dao
from xivo_dao.resources.user import dao as user_dao
from xivo_dao.alchemy.labels import Labels
class TestLabelExist(DAOTestCase):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment