Revision c9f1cf17

b/snf-quotaholder-app/quotaholder_django/test/config.py
77 77
printf("            and QH_PORT = {0}", QH_PORT)
78 78

  
79 79
QH_SERVER = '{0}:{1}'.format(QH_HOST, QH_PORT)
80
QH_URL = "http://{0}/api/quotaholder/v".format(QH_SERVER)
80
QH_URL = "http://{0}/quotaholder/v".format(QH_SERVER)
81 81

  
82 82
### DEFS ###
83 83
def new_quota_holder_client():
/dev/null
1

  
2
DEBUG = True
3
TEMPLATE_DEBUG = DEBUG
4

  
5
DATABASES = {
6
    'default': {
7
        'ENGINE': 'django.db.backends.sqlite3',
8
        'NAME': '/tmp/qh_testdb',
9
    }
10
}
b/snf-quotaholder-app/quotaholder_django/test/local_settings.py
1

  
2
DEBUG = True
3
TEMPLATE_DEBUG = DEBUG
4

  
5
DATABASES = {
6
    'default': {
7
        'ENGINE': 'django.db.backends.sqlite3',
8
        'NAME': '/tmp/qh_testdb',
9
    }
10
}
b/snf-quotaholder-app/quotaholder_django/test/qh_init
1 1
#!/bin/sh
2 2
d=`dirname $0`
3
export COMMISSIONING_CONF_DIR=$d
4
quotaholder-manage syncdb
5
quotaholder-manage runserver "$@" 2> $d/server_stderr &
3
export PYTHONPATH=$d
4
snf-manage syncdb --all --noinput
5
snf-manage runserver "$@" 2> $d/server_stderr &
b/snf-quotaholder-app/test.sh
1 1
#!/bin/sh
2 2

  
3 3
d=`dirname $0`
4
python $d/test
4
python $d/quotaholder_django/test

Also available in: Unified diff