Changes between Version 26 and Version 27 of OracleTestSetup
- Timestamp:
- Sep 26, 2015, 4:58:53 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OracleTestSetup
v26 v27 41 41 $ pip install cx_Oracle 42 42 43 #. Create testuser::43 #. Create main user:: 44 44 45 45 $ sqlplus sys/oracle@localhost/cdb1 as sysdba 46 46 SQL> ALTER SESSION SET CONTAINER=orcl; 47 SQL> CREATE USER django test IDENTIFIED BY djangotest;48 SQL> GRANT DBA TO django test;47 SQL> CREATE USER django IDENTIFIED BY django; 48 SQL> GRANT DBA TO django; 49 49 SQL> QUIT 50 50 … … 52 52 53 53 DATABASES = { 54 'default': { 55 'ENGINE': 'django.db.backends.oracle', 56 'NAME': '127.0.0.1:1521/orcl', 57 'USER': 'djangotest', 58 'PASSWORD': 'djangotest', 59 }, 54 'default': { 55 'ENGINE': 'django.db.backends.oracle', 56 'NAME': '127.0.0.1:1521/orcl', 57 'USER': 'django', 58 'PASSWORD': 'django', 59 'TEST' : { 60 'USER': 'default_test', 61 'TBLSPACE': 'default_test_tbls', 62 'TBLSPACE_TMP': 'default_test_tbls_tmp', 63 }, 64 }, 65 'other': { 66 'ENGINE': 'django.db.backends.oracle', 67 'NAME': '127.0.0.1:1521/orcl', 68 'USER': 'django', 69 'PASSWORD': 'django', 70 'TEST' : { 71 'USER': 'other_test', 72 'TBLSPACE': 'other_test_tbls', 73 'TBLSPACE_TMP': 'other_test_tbls_tmp', 74 }, 75 }, 60 76 } 61 77 … … 64 80 $ ./manage.py test 65 81 Creating test database for alias 'default'... 82 Creating test user... 83 Creating test database for alias 'other'... 66 84 Creating test user... 67 85 ... … … 73 91 Destroying test user... 74 92 Destroying test database tables... 93 Destroying test database for alias 'other'... 94 Destroying test user... 95 Destroying test database tables... 75 96 }}}