Project

General

Profile

Revision 477d2eb1

ID477d2eb106bea7c1452937f8bb00b8137940b4ee
Parent d4656036
Child 693e96f1

Added by Gabriel DE PERTHUIS almost 15 years ago

Correlator isolated test runner.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@535 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/tests/__init__.py
1 1
# -*- coding: utf-8 -*-
2 2
"""Unit and functional test suite for vigiboard."""
3 3

  
4
from os import path
4
from os import path, environ
5 5
import sys
6 6

  
7 7
from tg import config
......
66 66

  
67 67

  
68 68
def runtests():
69
    # XXX This is a hack, some import gets there first.
70
    #environ.setdefault('VIGILO_SETTINGS_MODULE', 'settings_tests')
69 71
    # XXX hard-coded path.
70
    sys.argv[-1:] = ['--with-pylons', '../vigiboard/test.ini', 'vigiboard.tests' ]
72
    sys.argv[1:0] = ['--with-pylons', '../vigiboard/test.ini', 'vigiboard.tests' ]
71 73
    nose.main()
72 74

  

Also available in: Unified diff