From 0e6decac6a77ee908bd484b926ce04b24855eb54 Mon Sep 17 00:00:00 2001 From: Vlad Date: Sat, 4 Oct 2025 10:54:41 +0500 Subject: [PATCH] chore(docs): move changelog fragment to CHANGES/1727.doc.rst --- CHANGES/1727.doc.rst | 9 +++++++++ newsfragments/1727.docs.rst | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1727.doc.rst delete mode 100644 newsfragments/1727.docs.rst diff --git a/CHANGES/1727.doc.rst b/CHANGES/1727.doc.rst new file mode 100644 index 00000000..0f9e6222 --- /dev/null +++ b/CHANGES/1727.doc.rst @@ -0,0 +1,9 @@ +Docs: add guide "Testing your bot" (pytest examples) + +Add a new documentation page that shows how to test bot handlers with pytest +without sending real requests to the Telegram API. The guide includes: +- an echo handler example +- a callback query example + +Both examples use dummy objects (Message / CallbackQuery) so developers can +test logic in isolation. diff --git a/newsfragments/1727.docs.rst b/newsfragments/1727.docs.rst deleted file mode 100644 index 5723b621..00000000 --- a/newsfragments/1727.docs.rst +++ /dev/null @@ -1 +0,0 @@ -Added a new guide on testing bots with pytest examples.