From b1d955379e1b4e9f2953d8e70a4af61e05d64a9d Mon Sep 17 00:00:00 2001 From: KIRTAN AGARWAL <100068307+kirtan48@users.noreply.github.com> Date: Wed, 2 Apr 2025 06:28:22 +0530 Subject: [PATCH] test-backend: Remove outdated reference to MarkdownTest class. The tests and test classes have been slightly renamed over time. --- docs/subsystems/markdown.md | 2 +- docs/testing/testing.md | 4 ++-- tools/test-backend | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/subsystems/markdown.md b/docs/subsystems/markdown.md index 4cd7243c6e..7f6c5f75ac 100644 --- a/docs/subsystems/markdown.md +++ b/docs/subsystems/markdown.md @@ -85,7 +85,7 @@ testcases in `markdown_test_cases.json` that you want to ignore. This is a workaround due to lack of comments support in JSON. Revert your "ignore" changes before committing. After this, you can run the frontend tests with `tools/test-js-with-node markdown` and backend tests with -`tools/test-backend zerver.tests.test_markdown.MarkdownTest.test_markdown_fixtures`. +`tools/test-backend zerver.tests.test_markdown.MarkdownFixtureTest.test_markdown_fixtures`. ## Changing Zulip's Markdown processor diff --git a/docs/testing/testing.md b/docs/testing/testing.md index 0ee9fb82d8..33835c504f 100644 --- a/docs/testing/testing.md +++ b/docs/testing/testing.md @@ -33,8 +33,8 @@ typically involve running subsets of the tests with commands like these: ```bash ./tools/lint zerver/models/__init__.py # Lint the file you just changed -./tools/test-backend zerver.tests.test_markdown.MarkdownTest.test_inline_youtube -./tools/test-backend MarkdownTest # Run `test-backend --help` for more options +./tools/test-backend zerver.tests.test_markdown.MarkdownEmbedsTest.test_inline_youtube +./tools/test-backend MarkdownEmbedsTest # Run `test-backend --help` for more options ./tools/test-js-with-node util # etc. ``` diff --git a/tools/test-backend b/tools/test-backend index d6823b2b0f..6c75c47b5c 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -211,10 +211,10 @@ def main() -> None: test-backend zerver.tests.test_markdown # run all tests in a test module test-backend zerver/tests/test_markdown.py # run all tests in a test module test-backend test_markdown # run all tests in a test module - test-backend zerver.tests.test_markdown.MarkdownTest # run all tests in a test class - test-backend MarkdownTest # run all tests in a test class - test-backend zerver.tests.test_markdown.MarkdownTest.test_inline_youtube # run a single test - test-backend MarkdownTest.test_inline_youtube # run a single test""" + test-backend zerver.tests.test_markdown.MarkdownEmbedsTest # run all tests in a test class + test-backend MarkdownEmbedsTest # run all tests in a test class + test-backend zerver.tests.test_markdown.MarkdownEmbedsTest.test_inline_youtube # run a single test + test-backend MarkdownEmbedsTest.test_inline_youtube # run a single test""" parser = argparse.ArgumentParser( description=usage, formatter_class=argparse.RawTextHelpFormatter