Browse files

remove randomness from the loadtests

  • Loading branch information...
1 parent 398ccfe commit d1286d38310dd621855f12b992ecb17d20713de9 @almet almet committed Aug 3, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 loadtest.py
View
10 loadtest.py
@@ -1,6 +1,5 @@
import json
import re
-import random
import unicodedata
from funkload.FunkLoadTestCase import FunkLoadTestCase
@@ -69,16 +68,13 @@ def test_search(self):
# marketplace.
self.get_all('/search/?q=')
- # get a project randomly from the marketplace and make a research on
- # it.
- self.get_all('/search/?q=%s' % random.choice(self.apps))
+ self.get_all('/search/?q=%s' % self.apps[0])
def test_app_detail(self):
- self.get_all('/app/{app}/'.format(app=random.choice(self.apps)))
+ self.get_all('/app/{app}/'.format(app=self.apps[0]))
def test_category(self):
- self.get_all('/apps/{category}'.format(
- category=random.choice(self.categories)))
+ self.get_all('/apps/{category}'.format(category=self.categories[0]))
def slugify(value):

0 comments on commit d1286d3

Please sign in to comment.