From f5b7026e407f7c803aff62a38910dfc94d592111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20ARNAUDEAU?= Date: Tue, 24 Jan 2017 11:45:07 +0100 Subject: [PATCH] TG-35 : Typo --- backend/tests/api/test_loginAPI.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/tests/api/test_loginAPI.py b/backend/tests/api/test_loginAPI.py index 84b0ded..00fe8b6 100644 --- a/backend/tests/api/test_loginAPI.py +++ b/backend/tests/api/test_loginAPI.py @@ -3,12 +3,15 @@ import unittest from flask import json from app.core import app +from app.model import USER, getUser class AuthTestCase(unittest.TestCase): @classmethod def setUpClass(cls): - pass + if getUser(login="admin") is None: + query = USER.insert().values(login="admin", email="admin@admin.com", role="4", phone="00.00.00.00.00") + query.execute() @classmethod def tearDownClass(cls):