Changes between Version 22 and Version 23 of OracleTestSetup


Ignore:
Timestamp:
Apr 20, 2015, 7:45:45 AM (9 years ago)
Author:
Tim Graham
Comment:

Updated example settings for deprecation of DATABASESTEST_* settings.

Legend:

Unmodified
Added
Removed
Modified
  • OracleTestSetup

    v22 v23  
    411411#. Start a new shell and install cx_Oracle in your testing virtualenv::
    412412
    413     pip install cx_Oracle
     413    $ pip install cx_Oracle
    414414
    415415   The new shell is necessary because the *instantclient* package sets various environment variables required to build the adapter. On Debian/Ubuntu, you'll need to set the variables manually::
     
    431431            'USER': 'system',
    432432            'PASSWORD': 'oracle',
    433             'TEST_USER': 'django',
    434             'TEST_TBLSPACE': 'django_test',
    435             'TEST_TBLSPACE_TMP': 'django_test_tmp',
     433            'TEST': {
     434                'USER': 'django',
     435                'TBLSPACE': 'django_test',
     436                'TBLSPACE_TMP': 'django_test_tmp',
     437            },
    436438        },
    437439        'other': {
     
    442444            'USER': 'system',
    443445            'PASSWORD': 'oracle',
    444             'TEST_USER': 'other',
    445             'TEST_TBLSPACE': 'other_test',
    446             'TEST_TBLSPACE_TMP': 'other_test_tmp',
    447         }
     446            'TEST': {
     447                'USER': 'other',
     448                'TBLSPACE': 'other_test',
     449                'TBLSPACE_TMP': 'other_test_tmp',
     450            },
     451        },
    448452    }
    449453
     
    454458#. Profit::
    455459
    456      $ # may be need on Debian/Ubuntu
    457      $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
    458      $ # for error "libaio.so.1: cannot open shared object file"
    459      $ sudo apt-get install libaio1
    460 
    461     (env)johnny64@equus ~/GSoC/2011/koniiiik-django/tests $ ./runtests.py --settings=test_oracle
     460    $ # may be need on Debian/Ubuntu
     461    $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
     462    $ # for error "libaio.so.1: cannot open shared object file"
     463    $ sudo apt-get install libaio1
     464
     465    $ ./runtests.py --settings=test_oracle
    462466    Creating test database for alias 'default'...
    463467    Creating test user...
    464468    Creating test database for alias 'other'...
    465     ..............................................................................................................................................................................................................................................................................................................................x...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..s.s....ss.s...ss...........................................................................................................................................................................................................................................................................x...........xx..................s.........................................................................................................................s.........................................................................................................................................................................................x..............................................................................................................................................................................................s..................................................................................ss............s.....................s................s...................................................................................................................................................................................s.......x.xx....................x.............x................................................................................................................................................................................................................................................................s.........s.........................................................sss......s..........................................................................................................................................................................................................................................................................x...............................................................................................sssssss....s..............s......s..........................................................................................................................................s.....................................................................................................................................................s..................................s................s...........................................................................s.............................................................................................x.s..s..................................................................................ss.......................................................................................................s....................................................................................................x.........................................................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.......................ss..........................................................................................................................................................................................................................................ssssss.......s.........................................................................................................................................................................................................................................................................................................s.......s..........sss..........................................................................................................................................................................................s.............................................................................sss...............................ssss........ss................................................................................................................................................................................................................................................................................................................................ss..........................................................................................................................................................................................................................................................................................................ssssssssssssssssssssssssssssssssssssss............................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss........................sssssssssssssssssss......................
     469    ...
    466470    ----------------------------------------------------------------------
    467     Ran 5826 tests in 1290.532s
    468 
    469     OK (skipped=360, expected failures=13)
     471    Ran XXX tests in XXXs
     472
     473    OK (skipped=X, expected failures=X)
    470474    Destroying test database for alias 'default'...
    471475    Destroying test user...
    472476    Destroying test database tables...
    473477    Destroying test database for alias 'other'...
    474 
    475 
    476478}}}
Back to Top