Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
0372eb69
Commit
0372eb69
authored
May 07, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip test on network error
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
fd93ffe6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
weblate/trans/tests/test_admin.py
weblate/trans/tests/test_admin.py
+3
-0
No files found.
weblate/trans/tests/test_admin.py
View file @
0372eb69
...
...
@@ -22,6 +22,7 @@ from weblate.trans.tests.test_views import ViewTestCase
import
weblate.trans.admin_views
from
django.test
import
TestCase
from
django.core.urlresolvers
import
reverse
from
django.utils.unittest
import
SkipTest
from
weblate.trans.tests.test_util
import
get_test_file
import
tempfile
import
shutil
...
...
@@ -84,6 +85,8 @@ class AdminTest(ViewTestCase):
reverse
(
'admin-ssh'
),
{
'action'
:
'add-host'
,
'host'
:
'github.com'
}
)
if
'Name or service not known'
in
response
.
content
:
raise
SkipTest
(
'Network error'
)
self
.
assertContains
(
response
,
'Added host key for github.com'
)
# Check the file contains it
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment