-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildout.cfg
64 lines (60 loc) · 1.43 KB
/
buildout.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[buildout]
develop += .
extends = local.cfg
parts = gocept.testdb
test
pytest
allow-picked-versions = false
show-picked-versions = true
versions = versions
[versions]
PyMySQL = 0.6.6
SQLAlchemy = ${:sqlalchemy}
execnet = 1.2.0
gocept.testing = 1.10.1
mock = 1.0.1
pep8 = 1.4.5
psycopg2 = 2.4.6
py = 1.4.29
pytest = 2.7.2
pytest-cache = 1.0
pytest-pep8 = 1.0.6
setuptools = 8.0
six = 1.2.0
sqlalchemy = 1.0.5
unittest2 = 0.8.0
zc.buildout = 2.2.5
zc.recipe.egg = 2.0.0
zc.recipe.testrunner = 2.0.0
zope.dottedname = 4.0.1
zope.exceptions = 4.0.5
zope.interface = 4.0.3
zope.testing = 4.1.1
zope.testrunner = 4.4.3
[gocept.testdb]
recipe = zc.recipe.egg
eggs = gocept.testdb
PyMySQL
psycopg2
interpreter = py
initialization = ${pytest:initialization}
[test]
recipe = zc.recipe.testrunner
eggs = gocept.testdb[test]
environment = test-environment
[pytest]
recipe = zc.recipe.egg
scripts = py.test=py.test
eggs =
pytest
pytest-cache
pytest-pep8
gocept.testdb[test]
initialization =
import os
os.environ['MYSQL_HOST'] = '${test-environment:MYSQL_HOST}'
os.environ['MYSQL_USER'] = '${test-environment:MYSQL_USER}'
os.environ['MYSQL_PASS'] = '${test-environment:MYSQL_PASS}'
os.environ['MYSQL_COMMAND_POSTFIX'] = '${test-environment:MYSQL_COMMAND_POSTFIX}'
os.environ['POSTGRES_HOST'] = '${test-environment:POSTGRES_HOST}'
os.environ['POSTGRES_USER'] = '${test-environment:POSTGRES_USER}'