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
ca18d480
Commit
ca18d480
authored
Jan 08, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use deprecated assertEquals
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
270e3072
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
weblate/test_openshift.py
weblate/test_openshift.py
+5
-5
weblate/trans/tests/test_changes.py
weblate/trans/tests/test_changes.py
+1
-1
No files found.
weblate/test_openshift.py
View file @
ca18d480
...
...
@@ -58,24 +58,24 @@ class OpenShiftTest(TestCase):
def
test_import_env_string
(
self
):
storage
=
FakeStorage
()
import_env_vars
({
'WEBLATE_FOO'
:
'"bar"'
},
storage
)
self
.
assertEqual
s
(
storage
.
FOO
,
'bar'
)
self
.
assertEqual
(
storage
.
FOO
,
'bar'
)
def
test_import_env_int
(
self
):
storage
=
FakeStorage
()
import_env_vars
({
'WEBLATE_FOO'
:
'1234'
},
storage
)
self
.
assertEqual
s
(
storage
.
FOO
,
1234
)
self
.
assertEqual
(
storage
.
FOO
,
1234
)
def
test_import_env_tuple
(
self
):
storage
=
FakeStorage
()
import_env_vars
({
'WEBLATE_FOO'
:
'(1, 2)'
},
storage
)
self
.
assertEqual
s
(
storage
.
FOO
,
(
1
,
2
))
self
.
assertEqual
(
storage
.
FOO
,
(
1
,
2
))
def
test_import_env_env
(
self
):
storage
=
FakeStorage
()
import_env_vars
({
'WEBLATE_FOO'
:
'"$BAR"'
,
'BAR'
:
'baz'
},
storage
)
self
.
assertEqual
s
(
storage
.
FOO
,
'baz'
)
self
.
assertEqual
(
storage
.
FOO
,
'baz'
)
def
test_import_env_raw
(
self
):
storage
=
FakeStorage
()
import_env_vars
({
'WEBLATE_FOO'
:
'(r"/project/(.*)$$",)'
},
storage
)
self
.
assertEqual
s
(
storage
.
FOO
,
(
'/project/(.*)$'
,))
self
.
assertEqual
(
storage
.
FOO
,
(
'/project/(.*)$'
,))
weblate/trans/tests/test_changes.py
View file @
ca18d480
...
...
@@ -33,7 +33,7 @@ class ChangesTest(ViewTestCase):
def
test_basic_csv_denied
(
self
):
response
=
self
.
client
.
get
(
reverse
(
'changes-csv'
))
self
.
assertEqual
s
(
response
.
status_code
,
403
)
self
.
assertEqual
(
response
.
status_code
,
403
)
def
test_basic_csv
(
self
):
self
.
make_manager
()
...
...
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