1. YouGov, plc.
  2. Untitled project
  3. limpy

Commits

Jason R. Coombs  committed e5bd076

Use pytest-runner plugin

  • Participants
  • Parent commits f10bc3b
  • Branches default

Comments (0)

Files changed (5)

File .hgsub

  • Ignore whitespace
-pytest-runner = https://bitbucket.org/jaraco/pytest-runner

File .hgsubstate

  • Ignore whitespace
-ef9db85a3f866eb2f98a74480cbf78024d15db0e pytest-runner

File jenkins/run

View file
  • Ignore whitespace
-#!/bin/bash
-virtualenv env
-# get requirements from YG cheeseshop
-yg-force-cheeseshop env
-env/bin/python setup.py test --junitxml="test results.xml"
+#!/bin/bash -e
+python2.7 setup.py ptr --junitxml="test results.xml" --index-url http://cheese.yougov.net

File setup.cfg

View file
  • Ignore whitespace
 [pytest]
+norecursedirs=*.egg build dist
 addopts=limpy/test --fulltrace --showlocals --tb=long --verbose

File setup.py

View file
  • Ignore whitespace
 
 import setuptools
 
-execfile('pytest-runner/command.py')
-
 with open('README') as f:
 	long_description = f.read()
 
 	],
 	setup_requires=[
 		'hgtools>=1.0',
+		'pytest-runner',
+	],
+	tests_require=[
+		'pytest',
 	],
 )
-PyTest.install(setup_params)
 
 if __name__ == '__main__':
 	from setuptools import setup