Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
a5468eaa
Commit
a5468eaa
authored
6 years ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
pep8
parent
81880bef
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/rest/client/v2_alpha/test_register.py
+0
-1
0 additions, 1 deletion
tests/rest/client/v2_alpha/test_register.py
tests/test_terms_auth.py
+3
-5
3 additions, 5 deletions
tests/test_terms_auth.py
with
3 additions
and
6 deletions
tests/rest/client/v2_alpha/test_register.py
+
0
−
1
View file @
a5468eaa
import
json
import
six
from
mock
import
Mock
...
...
This diff is collapsed.
Click to expand it.
tests/test_terms_auth.py
+
3
−
5
View file @
a5468eaa
...
...
@@ -19,13 +19,11 @@ from mock import Mock
from
twisted.test.proto_helpers
import
MemoryReactorClock
from
synapse.api.errors
import
InteractiveAuthIncompleteError
from
synapse.http.server
import
JsonResource
from
synapse.rest.client.v2_alpha.register
import
register_servlets
from
synapse.util
import
Clock
from
tests
import
unittest
from
tests.server
import
make_request
,
render
,
setup_test_homeserver
from
tests.server
import
make_request
class
TermsTestCase
(
unittest
.
HomeserverTestCase
):
...
...
@@ -114,8 +112,8 @@ class TermsTestCase(unittest.HomeserverTestCase):
request
,
channel
=
make_request
(
b
"
POST
"
,
self
.
url
,
request_data
)
self
.
render
(
request
)
# We're interested in getting a response that looks like a successful
registration,
# not so much that the details are exactly what we want.
# We're interested in getting a response that looks like a successful
#
registration,
not so much that the details are exactly what we want.
self
.
assertEquals
(
channel
.
result
[
"
code
"
],
b
"
200
"
,
channel
.
result
)
...
...
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