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
ba5307b4
Commit
ba5307b4
authored
May 16, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix assertions after adding another project
parent
921e8dea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
trans/tests/commands.py
trans/tests/commands.py
+4
-4
No files found.
trans/tests/commands.py
View file @
ba5307b4
...
...
@@ -46,7 +46,7 @@ class ImportProjectTest(RepoTestCase):
'**/*.po'
,
)
# We should have loaded three subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
3
)
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
4
)
def
test_re_import
(
self
):
project
=
self
.
create_project
()
...
...
@@ -58,7 +58,7 @@ class ImportProjectTest(RepoTestCase):
'**/*.po'
,
)
# We should have loaded three subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
3
)
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
4
)
# We should load no more subprojects
call_command
(
...
...
@@ -68,7 +68,7 @@ class ImportProjectTest(RepoTestCase):
'master'
,
'**/*.po'
,
)
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
3
)
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
4
)
def
test_import_against_existing
(
self
):
'''
...
...
@@ -85,7 +85,7 @@ class ImportProjectTest(RepoTestCase):
'**/*.po'
,
)
# We should have loaded four subprojects
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
4
)
self
.
assertEqual
(
project
.
subproject_set
.
count
(),
5
)
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