mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 13:03:01 +00:00
removed comments
This commit is contained in:
@@ -979,28 +979,12 @@ def test_add_multi_group(app):
|
|||||||
r_names = [group['name'] for group in reply]
|
r_names = [group['name'] for group in reply]
|
||||||
assert names == r_names
|
assert names == r_names
|
||||||
|
|
||||||
# for name in names:
|
|
||||||
# user = find_user(db, name)
|
|
||||||
# assert user is not None
|
|
||||||
# assert user.name == name
|
|
||||||
# assert not user.admin
|
|
||||||
|
|
||||||
# try to create the same groups again
|
# try to create the same groups again
|
||||||
r = yield api_request(app, 'users', method='post',
|
r = yield api_request(app, 'users', method='post',
|
||||||
data=json.dumps({'groups': names}),
|
data=json.dumps({'groups': names}),
|
||||||
)
|
)
|
||||||
assert r.status_code == 400
|
assert r.status_code == 400
|
||||||
|
|
||||||
# names = ['a', 'b', 'ab']
|
|
||||||
|
|
||||||
# # try to create the same users again
|
|
||||||
# r = yield api_request(app, 'users', method='post',
|
|
||||||
# data=json.dumps({'usernames': names}),
|
|
||||||
# )
|
|
||||||
# assert r.status_code == 201
|
|
||||||
# reply = r.json()
|
|
||||||
# r_names = [user['name'] for user in reply]
|
|
||||||
# assert r_names == ['ab']
|
|
||||||
|
|
||||||
@mark.group
|
@mark.group
|
||||||
@mark.gen_test
|
@mark.gen_test
|
||||||
|
Reference in New Issue
Block a user