Commit 124671f6 authored by Michal Čihař's avatar Michal Čihař

Test repoweb validation

parent 4c58f428
...@@ -429,6 +429,14 @@ class SubProjectTest(RepoTestCase): ...@@ -429,6 +429,14 @@ class SubProjectTest(RepoTestCase):
project.full_clean project.full_clean
) )
# Repoweb
project.repoweb = 'http://%(foo)s/%(bar)s/%72'
self.assertRaisesMessage(
ValidationError,
"Bad format string ('foo')",
project.full_clean
)
# Bad link # Bad link
project.repo = 'weblate://foo' project.repo = 'weblate://foo'
project.push = '' project.push = ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment