From 59858b2e98c820dd5fc34429fde23c4cff8f4803 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Mon, 19 Jan 2015 18:17:42 +0200 Subject: rename rhizi_api -> rz_api (tests still broken) --- src/server-tests/test_rhizi_api.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/server-tests') diff --git a/src/server-tests/test_rhizi_api.py b/src/server-tests/test_rhizi_api.py index 98f2f868..86840250 100644 --- a/src/server-tests/test_rhizi_api.py +++ b/src/server-tests/test_rhizi_api.py @@ -1,15 +1,14 @@ -import unittest -import db_controller as dbc -import rz_api import json import logging - -from rz_server import Config -from rhizi_server import Config -from werkzeug.test import EnvironBuilder +import unittest from werkzeug.test import Client +from werkzeug.test import EnvironBuilder from db_controller import DB_Driver_Embedded +import db_controller as dbc +from rhizi_server import Config +import rz_api +from rz_server import Config class TestRhiziAPI(unittest.TestCase): @@ -20,7 +19,7 @@ class TestRhiziAPI(unittest.TestCase): def setUpClass(self): cfg = Config.init_from_file('res/etc/rhizi-server.conf') self.db_ctl = dbc.DB_Controller(cfg) - rhizi_api.db_ctl = self.db_ctl + rz_api.db_ctl = self.db_ctl # TODO extract to superclass log = logging.getLogger('rhizi') @@ -33,7 +32,7 @@ class TestRhiziAPI(unittest.TestCase): loading a non existing node test """ id_set = ['non_existing_id'] - with rhizi_api.webapp.test_client() as c: + with rz_api.webapp.test_client() as c: req = c.post('/load/node-set-by-id', content_type='application/json', data=json.dumps({ 'id_set': id_set})) @@ -50,7 +49,7 @@ class TestRhiziAPI(unittest.TestCase): id_set = ['skill_00'] self.db_ctl.exec_cypher_query('create (s:Skill {id: \'skill_00\'} )') - with rhizi_api.webapp.test_client() as c: + with rz_api.webapp.test_client() as c: req = c.post('/load/node-set-by-id', content_type='application/json', data=json.dumps({ 'id_set': id_set})) -- cgit v1.3.1