Permalink
Browse files

Merge pull request #5 from robhudson/adjust-description-length

Adjust description length to match current spec.
  • Loading branch information...
mattbasta committed Feb 5, 2013
2 parents 9d14704 + 9492195 commit 3b10fc198c50d0418f8902c61c08db54f4e03970
Showing with 4 additions and 4 deletions.
  1. +1 −1 appvalidator/specs/webapps.py
  2. +3 −3 tests/test_webapp.py
@@ -57,7 +57,7 @@ class WebappSpec(Spec):
"max_length": 128,
"not_empty": True},
"description": {"expected_type": types.StringTypes,
- "max_length": 250,
+ "max_length": 1024,
"not_empty": True},
"launch_path": {"expected_type": types.StringTypes,
"process": lambda s: s.process_launch_path,
View
@@ -49,7 +49,7 @@ def setUp(self):
self.listed = False
descr = "Exciting Open Web development action!"
- descr += (250 - len(descr)) * "_"
+ descr += (1024 - len(descr)) * "_"
self.data = {
"version": "1.0",
@@ -738,12 +738,12 @@ def test_csp(self):
self.assert_silent()
def test_description_long(self):
- self.data['description'] = 'x' * 251
+ self.data['description'] = 'x' * 1025
self.analyze()
self.assert_failed(with_errors=True)
def test_locale_description_long(self):
- self.data['locales']['es']['description'] = u'×' * 251
+ self.data['locales']['es']['description'] = u'×' * 1025
self.analyze()
self.assert_failed(with_errors=True)
assert 'locales > es > description' in (

0 comments on commit 3b10fc1

Please sign in to comment.