From 7e179915665c5284e30453501d32d3cd6b07832f Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Fri, 15 Mar 2024 12:04:37 +0100 Subject: [PATCH] add tests for latex_warning --- notebooks/test/test-cli.ipynb | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/notebooks/test/test-cli.ipynb b/notebooks/test/test-cli.ipynb index daacfb223..3636da9d1 100644 --- a/notebooks/test/test-cli.ipynb +++ b/notebooks/test/test-cli.ipynb @@ -43,7 +43,9 @@ "metadata": {}, "outputs": [], "source": [ - "from pathlib import Path" + "from pathlib import Path\n", + "\n", + "from cal_tools.tools import latex_warning" ] }, { @@ -72,6 +74,28 @@ "source": [ "print(\"🥼\")" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Test `latex_warning` output which uses a custom `warningbox` latex command" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "latex_warning(\"This is a warning test message.\")\n", + "\n", + "# empty message\n", + "latex_warning(\"\")\n", + "\n", + "# special characters\n", + "latex_warning(\"$x < y$\")" + ] } ], "metadata": { -- GitLab