Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
474810d9
Commit
474810d9
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
fix broken test
This test stubbed out some stuff in a very weird way. I have no idea why. It broke.
parent
68c0ce62
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/server_notices/test_resource_limits_server_notices.py
+1
-9
1 addition, 9 deletions
tests/server_notices/test_resource_limits_server_notices.py
with
1 addition
and
9 deletions
tests/server_notices/test_resource_limits_server_notices.py
+
1
−
9
View file @
474810d9
...
@@ -4,7 +4,6 @@ from twisted.internet import defer
...
@@ -4,7 +4,6 @@ from twisted.internet import defer
from
synapse.api.constants
import
EventTypes
,
ServerNoticeMsgType
from
synapse.api.constants
import
EventTypes
,
ServerNoticeMsgType
from
synapse.api.errors
import
ResourceLimitError
from
synapse.api.errors
import
ResourceLimitError
from
synapse.handlers.auth
import
AuthHandler
from
synapse.server_notices.resource_limits_server_notices
import
(
from
synapse.server_notices.resource_limits_server_notices
import
(
ResourceLimitsServerNotices
,
ResourceLimitsServerNotices
,
)
)
...
@@ -13,17 +12,10 @@ from tests import unittest
...
@@ -13,17 +12,10 @@ from tests import unittest
from
tests.utils
import
setup_test_homeserver
from
tests.utils
import
setup_test_homeserver
class
AuthHandlers
(
object
):
def
__init__
(
self
,
hs
):
self
.
auth_handler
=
AuthHandler
(
hs
)
class
TestResourceLimitsServerNotices
(
unittest
.
TestCase
):
class
TestResourceLimitsServerNotices
(
unittest
.
TestCase
):
@defer.inlineCallbacks
@defer.inlineCallbacks
def
setUp
(
self
):
def
setUp
(
self
):
self
.
hs
=
yield
setup_test_homeserver
(
self
.
addCleanup
,
handlers
=
None
)
self
.
hs
=
yield
setup_test_homeserver
(
self
.
addCleanup
)
self
.
hs
.
handlers
=
AuthHandlers
(
self
.
hs
)
self
.
auth_handler
=
self
.
hs
.
handlers
.
auth_handler
self
.
server_notices_sender
=
self
.
hs
.
get_server_notices_sender
()
self
.
server_notices_sender
=
self
.
hs
.
get_server_notices_sender
()
# relying on [1] is far from ideal, but the only case where
# relying on [1] is far from ideal, but the only case where
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment