| 12 | | SM_class = "dejavu.storage.storeado.StorageManagerADO_MSAccess" |
|---|
| 13 | | opts = {u'Connect': "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=zoo.mdb;", |
|---|
| 14 | | u'Expanded Columns': "Animal.PreviousZoos:int", |
|---|
| 15 | | } |
|---|
| 16 | | |
|---|
| 17 | | def run(): |
|---|
| 18 | | import zoo_fixture |
|---|
| 19 | | # Isolate schema changes from one test to the next. |
|---|
| 20 | | reload(zoo_fixture) |
|---|
| 21 | | zoo_fixture.init() |
|---|
| 22 | | zoo_fixture.run(SM_class, opts) |
|---|
| | 13 | from dejavu.storage import storeado |
|---|
| | 14 | mod = storeado.gen_py() |
|---|
| | 15 | if mod is None: |
|---|
| | 16 | def run(): |
|---|
| | 17 | warnings.warn("ADO 2.7 support could not be verified. " |
|---|
| | 18 | "The MSAccess test will not be run.") |
|---|
| | 19 | else: |
|---|
| | 20 | SM_class = "dejavu.storage.storeado.StorageManagerADO_MSAccess" |
|---|
| | 21 | opts = {u'Connect': "PROVIDER=MICROSOFT.JET.OLEDB.4.0;" |
|---|
| | 22 | "DATA SOURCE=zoo.mdb;", |
|---|
| | 23 | u'Expanded Columns': "Animal.PreviousZoos:int", |
|---|
| | 24 | } |
|---|
| | 25 | |
|---|
| | 26 | def run(): |
|---|
| | 27 | import zoo_fixture |
|---|
| | 28 | # Isolate schema changes from one test to the next. |
|---|
| | 29 | reload(zoo_fixture) |
|---|
| | 30 | zoo_fixture.init() |
|---|
| | 31 | zoo_fixture.run(SM_class, opts) |
|---|