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
c0f926b9
Commit
c0f926b9
authored
May 04, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify settings override
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
ab5ef9df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
weblate/accounts/tests.py
weblate/accounts/tests.py
+2
-4
No files found.
weblate/accounts/tests.py
View file @
c0f926b9
...
...
@@ -29,7 +29,7 @@ from unittest import SkipTest
from
django.core.urlresolvers
import
reverse
from
django.contrib.auth.models
import
AnonymousUser
,
User
,
Group
from
django.core
import
mail
from
django.
conf
import
settings
from
django.
test.utils
import
override_
settings
from
django.core.management
import
call_command
from
django.http
import
HttpRequest
,
HttpResponseRedirect
...
...
@@ -713,10 +713,8 @@ class MiddlewareTest(TestCase):
middleware
.
process_view
(
request
,
self
.
view_method
,
(),
{})
)
@
override_settings
(
LOGIN_REQUIRED_URLS
=
(
r'/project/(.*)$'
,))
def
test_protect_project
(
self
):
settings
.
LOGIN_REQUIRED_URLS
=
(
r'/project/(.*)$'
,
)
middleware
=
RequireLoginMiddleware
()
request
=
HttpRequest
()
request
.
user
=
User
()
...
...
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