mirror of https://github.com/zulip/zulip.git
refactor: Rename test_bugdown.py to test_markdown.py.
Rename the file and all the refrences to file and module test_bugdown.py to test_markdown.py. This commit is part of series of commit that renames bugdown to markdown.
This commit is contained in:
parent
05cce86670
commit
0578a918e6
|
@ -104,7 +104,7 @@ this?". Good choices include
|
|||
user input, and potential bugs that are likely for the type of
|
||||
change being made. Tests that exclude whole classes of potential
|
||||
bugs are preferred when possible (e.g., the common test suite
|
||||
`test_bugdown.py` between the Zulip server's [frontend and backend
|
||||
`test_markdown.py` between the Zulip server's [frontend and backend
|
||||
Markdown processors](../subsystems/markdown.md), or the `GetEventsTest` test for
|
||||
buggy race condition handling).
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ message is sent). As a result, we try to make sure that
|
|||
## Testing
|
||||
|
||||
The Python-Markdown implementation is tested by
|
||||
`zerver/tests/test_bugdown.py`, and the marked.js implementation and
|
||||
`zerver/tests/test_markdown.py`, and the marked.js implementation and
|
||||
`markdown.contains_backend_only_syntax` are tested by
|
||||
`frontend_tests/node_tests/markdown.js`.
|
||||
|
||||
|
@ -79,7 +79,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_bugdown.BugdownTest.test_bugdown_fixtures`.
|
||||
`tools/test-backend zerver.tests.test_markdown.BugdownTest.test_bugdown_fixtures`.
|
||||
|
||||
## Changing Zulip's markdown processor
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ typically involve running subsets of the tests with commands like these:
|
|||
|
||||
```
|
||||
./tools/lint zerver/lib/actions.py # Lint the file you just changed
|
||||
./tools/test-backend zerver.tests.test_bugdown.BugdownTest.test_inline_youtube
|
||||
./tools/test-backend zerver.tests.test_markdown.BugdownTest.test_inline_youtube
|
||||
./tools/test-backend BugdownTest # Run `test-backend --help` for more options
|
||||
./tools/test-js-with-casper 09-navigation.js
|
||||
./tools/test-js-with-node utils.js
|
||||
|
|
|
@ -196,12 +196,12 @@ def main() -> None:
|
|||
|
||||
usage = """test-backend [options]
|
||||
test-backend # Runs all backend tests
|
||||
test-backend zerver.tests.test_bugdown # run all tests in a test module
|
||||
test-backend zerver/tests/test_bugdown.py # run all tests in a test module
|
||||
test-backend test_bugdown # run all tests in a test module
|
||||
test-backend zerver.tests.test_bugdown.BugdownTest # run all tests in a test class
|
||||
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.BugdownTest # run all tests in a test class
|
||||
test-backend BugdownTest # run all tests in a test class
|
||||
test-backend zerver.tests.test_bugdown.BugdownTest.test_inline_youtube # run a single test
|
||||
test-backend zerver.tests.test_markdown.BugdownTest.test_inline_youtube # run a single test
|
||||
test-backend BugdownTest.test_inline_youtube # run a single test"""
|
||||
|
||||
parser = argparse.ArgumentParser(description=usage,
|
||||
|
|
Loading…
Reference in New Issue