def test_update_check_notifies_user():
    """If an update is available, admin users are notified in the panel"""
    app = create_ctfd()
    with app.app_context():
        app.config["UPDATE_CHECK"] = True
        set_config("version_latest", "https://github.com/CTFd/CTFd/releases/tag/9.9.9")
        client = login_as_user(app, name="admin", password="password")

        r = client.get("/admin/config")
        assert r.status_code == 200

        response = r.get_data(as_text=True)
        assert "https://github.com/CTFd/CTFd/releases/tag/9.9.9" in response

    destroy_ctfd(app)
If an update is available, admin users are notified in the panel
tests/utils/test_updates.py