📝 Update emoji used in Rich help formatting tutorial (#1429)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sofie Van Landeghem · committed by GitHub · parent 17c0dce · Browse files · 6 files·+10 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+10 added−10 removed
- tests:+5 added−5 removed
- other:+5 added−5 removed
Provenance
- Commit
30af2d0- Tree
2b9f518- Author
Sofie Van Landeghem <svlandeg@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
17c0dce
6 files changed+10 added−10 removed
modified:docs_src/commands/help/tutorial006.py+3 added-3 removed
12 unmodified lines13 14 @app.command()15 def delete(username: str):16 """17- [red]Delete[/red] a user. :fire:17+ [red]Delete[/red] a user. :x:18 """19 print(f"Deleting user: {username}")20 21 22 @app.command(rich_help_panel="Utils and Configs")23 def config(configuration: str):24 """25- [blue]Configure[/blue] the system. :wrench:25+ [blue]Configure[/blue] the system. :gear:26 """27 print(f"Configuring the system with: {configuration}")28 29 15 unmodified lines45 46 @app.command(rich_help_panel="Help and Others")47 def report():48 """49- [yellow]Report[/yellow] an issue. :bug:49+ [yellow]Report[/yellow] an issue. :exclamation:50 """51 print("Please open a new issue online, not a direct message")52 53 2 unmodified linesmodified:docs_src/commands/help/tutorial007_an.py+1 added-1 removed
35 unmodified lines36 37 @app.command(rich_help_panel="Utils and Configs")38 def config(configuration: str):39 """40- [blue]Configure[/blue] the system. :wrench:40+ [blue]Configure[/blue] the system. :gear:41 """42 print(f"Configuring the system with: {configuration}")43 44 2 unmodified linesmodified:docs_src/commands/help/tutorial007.py+1 added-1 removed
28 unmodified lines29 30 @app.command(rich_help_panel="Utils and Configs")31 def config(configuration: str):32 """33- [blue]Configure[/blue] the system. :wrench:33+ [blue]Configure[/blue] the system. :gear:34 """35 print(f"Configuring the system with: {configuration}")36 37 2 unmodified linesmodified:tests/test_tutorial/test_commands/test_help/test_tutorial006.py+3 added-3 removed
15 unmodified lines16 assert result.exit_code == 017 assert "create" in result.output18 assert "Create a new user. ✨" in result.output19 assert "delete" in result.output20- assert "Delete a user. 🔥" in result.output20+ assert "Delete a user. ❌" in result.output21 assert "Utils and Configs" in result.output22 assert "config" in result.output23- assert "Configure the system. 🔧" in result.output23+ assert "Configure the system. ⚙" in result.output24 assert "Synchronize the system or something fancy like that. ♻" in result.output25 assert "Help and Others" in result.output26 assert "Get help with the system. ❓" in result.output27- assert "Report an issue. 🐛" in result.output27+ assert "Report an issue. ❗" in result.output28 29 30 def test_call():31 # Mainly for coverage22 unmodified linesmodified:tests/test_tutorial/test_commands/test_help/test_tutorial007_an.py+1 added-1 removed
16 unmodified lines17 assert "create" in result.output18 assert "Create a new user. ✨" in result.output19 assert "Utils and Configs" in result.output20 assert "config" in result.output21- assert "Configure the system. 🔧" in result.output21+ assert "Configure the system. ⚙" in result.output22 23 24 def test_create_help():25 result = runner.invoke(app, ["create", "--help"])32 unmodified linesmodified:tests/test_tutorial/test_commands/test_help/test_tutorial007.py+1 added-1 removed
16 unmodified lines17 assert "create" in result.output18 assert "Create a new user. ✨" in result.output19 assert "Utils and Configs" in result.output20 assert "config" in result.output21- assert "Configure the system. 🔧" in result.output21+ assert "Configure the system. ⚙" in result.output22 23 24 def test_create_help():25 result = runner.invoke(app, ["create", "--help"])32 unmodified lines