Create a private team endpoint (#413)

* Adding private /team endpoint
This commit is contained in:
Kevin Chung
2017-10-16 13:57:40 -04:00
committed by GitHub
parent ef39c3ef41
commit 39b9dc5945
4 changed files with 40 additions and 3 deletions

View File

@@ -174,6 +174,17 @@ def test_user_get_team_page():
destroy_ctfd(app)
def test_user_get_private_team_page():
"""Can a registered user load their private team page (/team)"""
app = create_ctfd()
with app.app_context():
register_user(app)
client = login_as_user(app)
r = client.get('/team')
assert r.status_code == 200
destroy_ctfd(app)
def test_user_get_profile():
"""Can a registered user load their private profile (/profile)"""
app = create_ctfd()