def test_api_notifications_post_admin():
    """Can the users post /api/v1/notifications if admin"""
    app = create_ctfd()
    with app.app_context():
        gen_challenge(app.db)
        with login_as_user(app, name="admin") as client:
            r = client.post(
                "/api/v1/notifications", json={"title": "title", "content": "content"}
            )
            assert r.status_code == 200
    destroy_ctfd(app)
Can the users post /api/v1/notifications if admin
tests/api/v1/test_notifications.py