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
ee9607df
Commit
ee9607df
authored
Apr 11, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust import test to new test data
parent
caeec9cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
trans/tests/commands.py
trans/tests/commands.py
+7
-7
No files found.
trans/tests/commands.py
View file @
ee9607df
...
...
@@ -45,8 +45,8 @@ class ImportProjectTest(RepoTestCase):
'master'
,
'**/*.po'
,
)
# We should have loaded t
wo
subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
2
)
# We should have loaded t
hree
subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
3
)
def
test_re_import
(
self
):
project
=
self
.
create_project
()
...
...
@@ -57,8 +57,8 @@ class ImportProjectTest(RepoTestCase):
'master'
,
'**/*.po'
,
)
# We should have loaded t
wo
subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
2
)
# We should have loaded t
hree
subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
3
)
# We should load no more subprojects
call_command
(
...
...
@@ -68,7 +68,7 @@ class ImportProjectTest(RepoTestCase):
'master'
,
'**/*.po'
,
)
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
2
)
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
3
)
def
test_import_against_existing
(
self
):
'''
...
...
@@ -84,8 +84,8 @@ class ImportProjectTest(RepoTestCase):
'master'
,
'**/*.po'
,
)
# We should have loaded
two
subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
3
)
# We should have loaded
four
subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
4
)
def
test_import_missing_project
(
self
):
'''
...
...
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