Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Happier tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
davedash committed Jul 7, 2011
1 parent 9effb42 commit a86eab0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/input/tests/test_redirects.py
Expand Up @@ -24,7 +24,7 @@ def test_redirects(self):
def test_mobile(self):
"""
Verify mobile redirects work using a mobile browser.
Verify that accessing the root of the site with a mobile User-Agent
causes a redirect (this is how we route mobile users to m.input).
Makes sure redirects only happen with a desktop browser too.
Expand All @@ -35,7 +35,7 @@ def test_mobile(self):
name='m.input.mozillatest.com')

r = self.fxclient.get(reverse('search'))
assert r.status_code == 200
assert r.status_code in (200, 500) # Sphinx will be down...
r = self.mclient.get(reverse('search'))
assert r.status_code == 302

Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Expand Up @@ -11,6 +11,7 @@ Contents:
.. toctree::
:maxdepth: 2

installation
sphinxsearch
elasticsearch
l10n
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.sh
Expand Up @@ -18,7 +18,7 @@ if [ ! -d "$VENV/bin" ]; then
virtualenv $VENV
fi

if [ ! -d "$VENV/vendor" ]; then
if [ ! -d "$WORKSPACE/vendor" ]; then
echo "No /vendor... crap."
git clone git://github.com/mozilla/input-lib vendor
fi
Expand Down

0 comments on commit a86eab0

Please sign in to comment.