Skip to content

Commit dc49df1

Browse files
committed
Merge pull request #1058 from undingen/formencode
add formencode test
2 parents d98960b + 681c967 commit dc49df1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/extra/formencode_test.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import os, sys, subprocess
2+
sys.path.append(os.path.dirname(__file__) + "/../lib")
3+
4+
from test_helper import create_virtenv, run_test
5+
6+
ENV_NAME = "formencode_test_env_" + os.path.basename(sys.executable)
7+
SRC_DIR = os.path.abspath(os.path.join(ENV_NAME, "src"))
8+
PYTHON_EXE = os.path.abspath(os.path.join(ENV_NAME, "bin", "python"))
9+
NOSETESTS_EXE = os.path.abspath(os.path.join(ENV_NAME, "bin", "nosetests"))
10+
FORMENCODE_DIR = os.path.abspath(os.path.join(ENV_NAME, "src", "formencode"))
11+
12+
packages = ["nose==1.3.7", "pycountry==1.6", "pyDNS==2.3.6"]
13+
packages += ["-e", "git+https://github.com/formencode/[email protected]#egg=formencode"]
14+
create_virtenv(ENV_NAME, packages, force_create = True)
15+
16+
expected = [{'ran': 201}]
17+
run_test([NOSETESTS_EXE], cwd=FORMENCODE_DIR, expected=expected)

0 commit comments

Comments
 (0)