mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user