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
3b538a44
Commit
3b538a44
authored
Jan 26, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test non existing dirs as well
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
8acca44e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
weblate/trans/tests/test_search.py
weblate/trans/tests/test_search.py
+11
-2
No files found.
weblate/trans/tests/test_search.py
View file @
3b538a44
...
...
@@ -397,8 +397,10 @@ class SearchMigrationTest(TestCase):
weblate
.
trans
.
search
.
STORAGE
=
self
.
backup
def
do_test
(
self
,
source
,
target
):
self
.
storage
.
create_index
(
source
,
'source'
)
self
.
storage
.
create_index
(
target
,
'target-cs'
)
if
source
is
not
None
:
self
.
storage
.
create_index
(
source
,
'source'
)
if
target
is
not
None
:
self
.
storage
.
create_index
(
target
,
'target-cs'
)
self
.
assertIsNotNone
(
weblate
.
trans
.
search
.
get_source_index
()
...
...
@@ -407,6 +409,13 @@ class SearchMigrationTest(TestCase):
weblate
.
trans
.
search
.
get_target_index
(
'cs'
)
)
def
test_nonexisting
(
self
):
self
.
do_test
(
None
,
None
)
def
test_nonexisting_dir
(
self
):
shutil
.
rmtree
(
self
.
path
)
self
.
do_test
(
None
,
None
)
def
test_current
(
self
):
source
=
weblate
.
trans
.
search
.
SourceSchema
target
=
weblate
.
trans
.
search
.
TargetSchema
...
...
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