mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 05:54:19 +01:00
Update admin notification UI and allow for deleting notifications (#803)
* Show notification titles on the notification list page * Allow for deleting notifications * Update notification UI in admin panel * Make /api/v1/notifications/<id> accessible to all * Default `login_as_user()` and `register_user()` to fail on invalid credentials
This commit is contained in:
@@ -134,8 +134,8 @@ def test_register_user_page_menu_bar():
|
||||
with app.app_context():
|
||||
register_user_page_menu_bar(title='test_user_menu_link', route='/test_user_href')
|
||||
|
||||
client = login_as_user(app)
|
||||
r = client.get('/')
|
||||
with app.test_client() as client:
|
||||
r = client.get('/')
|
||||
|
||||
output = r.get_data(as_text=True)
|
||||
assert '/test_user_href' in output
|
||||
|
||||
Reference in New Issue
Block a user