Skip to content

Commit

Permalink
Merge pull request #1058 from undingen/formencode
Browse files Browse the repository at this point in the history
add formencode test
  • Loading branch information
undingen committed Feb 2, 2016
2 parents d98960b + 681c967 commit dc49df1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/extra/formencode_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import os, sys, subprocess
sys.path.append(os.path.dirname(__file__) + "/../lib")

from test_helper import create_virtenv, run_test

ENV_NAME = "formencode_test_env_" + os.path.basename(sys.executable)
SRC_DIR = os.path.abspath(os.path.join(ENV_NAME, "src"))
PYTHON_EXE = os.path.abspath(os.path.join(ENV_NAME, "bin", "python"))
NOSETESTS_EXE = os.path.abspath(os.path.join(ENV_NAME, "bin", "nosetests"))
FORMENCODE_DIR = os.path.abspath(os.path.join(ENV_NAME, "src", "formencode"))

packages = ["nose==1.3.7", "pycountry==1.6", "pyDNS==2.3.6"]
packages += ["-e", "git+https://github.com/formencode/formencode.git@1.2.5#egg=formencode"]
create_virtenv(ENV_NAME, packages, force_create = True)

expected = [{'ran': 201}]
run_test([NOSETESTS_EXE], cwd=FORMENCODE_DIR, expected=expected)

0 comments on commit dc49df1

Please sign in to comment.