Added pip and setuptools, required in virtualenv, to requirements.txt in order to simplify buildbot testing of package installation and version testing.
- Legacy-Id: 9560
This commit is contained in:
parent
60738dc8bd
commit
5a5289d1ad
|
@ -35,6 +35,7 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
import html5lib
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import urllib2 as urllib
|
import urllib2 as urllib
|
||||||
from difflib import unified_diff
|
from difflib import unified_diff
|
||||||
|
@ -286,6 +287,8 @@ class TestCase(django.test.TestCase):
|
||||||
We don't flush the database, as that triggers a re-load of initial_data.
|
We don't flush the database, as that triggers a re-load of initial_data.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
parser = html5lib.HTMLParser(strict=True)
|
||||||
|
|
||||||
def _fixture_setup(self):
|
def _fixture_setup(self):
|
||||||
global loaded_fixtures
|
global loaded_fixtures
|
||||||
|
|
||||||
|
@ -316,3 +319,15 @@ class TestCase(django.test.TestCase):
|
||||||
loaded_fixtures += fixtures
|
loaded_fixtures += fixtures
|
||||||
|
|
||||||
super(TestCase, self)._fixture_setup()
|
super(TestCase, self)._fixture_setup()
|
||||||
|
|
||||||
|
|
||||||
|
def assertValidHTML(self, data):
|
||||||
|
try:
|
||||||
|
parser.parse(data)
|
||||||
|
except Exception as e:
|
||||||
|
raise self.failureException(str(e))
|
||||||
|
|
||||||
|
def assertValidHTMLResponse(self, resp):
|
||||||
|
self.assertHttpOK(resp)
|
||||||
|
self.assertTrue(resp['Content-Type'].startswith('text/html'))
|
||||||
|
self.assertValidHTML(resp.content)
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
|
|
||||||
# --- Add entries at the top ---
|
# --- Add entries at the top ---
|
||||||
|
|
||||||
personal/lars/6.0.2.dev0@9526
|
personal/rjs/v6.0.2.dev0@9540:9542
|
||||||
|
#personal/lars/6.0.2.dev0@9526
|
||||||
personal/lars/6.0.2.dev0@9525
|
personal/lars/6.0.2.dev0@9525
|
||||||
personal/lars/6.0.2.dev0@9524
|
personal/lars/6.0.2.dev0@9524
|
||||||
personal/willem/v5.12.4.dev0@9316
|
personal/willem/v5.12.4.dev0@9316
|
||||||
|
|
|
@ -11,11 +11,13 @@ html5lib>=0.90
|
||||||
mimeparse>=0.1.3 # for TastPie
|
mimeparse>=0.1.3 # for TastPie
|
||||||
MySQL-python>=1.2.5
|
MySQL-python>=1.2.5
|
||||||
pathlib>=1.0
|
pathlib>=1.0
|
||||||
|
pip>=6.0
|
||||||
pyflakes>=0.8.1
|
pyflakes>=0.8.1
|
||||||
pyquery>1.2.4
|
pyquery>1.2.4
|
||||||
python-dateutil>=2.2
|
python-dateutil>=2.2
|
||||||
python-magic>=0.4.6
|
python-magic>=0.4.6
|
||||||
pytz>=2014.7
|
pytz>=2014.7
|
||||||
|
setuptools>=1.2
|
||||||
six>=1.8.0
|
six>=1.8.0
|
||||||
django-tastypie>=0.12.1
|
django-tastypie>=0.12.1
|
||||||
wsgiref>=0.1.2
|
wsgiref>=0.1.2
|
||||||
|
|
Loading…
Reference in a new issue