Skip to content
Myr

📝 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

6 files+10 added−10 removed

modified:docs_src/commands/help/tutorial006.py+3 added-3 removed
12 unmodified lines
1314@app.command()15def 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}")202122@app.command(rich_help_panel="Utils and Configs")23def 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}")2829
15 unmodified lines
4546@app.command(rich_help_panel="Help and Others")47def 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")5253
2 unmodified lines
modified:docs_src/commands/help/tutorial007_an.py+1 added-1 removed
35 unmodified lines
3637@app.command(rich_help_panel="Utils and Configs")38def 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}")4344
2 unmodified lines
modified:docs_src/commands/help/tutorial007.py+1 added-1 removed
28 unmodified lines
2930@app.command(rich_help_panel="Utils and Configs")31def 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}")3637
2 unmodified lines
modified:tests/test_tutorial/test_commands/test_help/test_tutorial006.py+3 added-3 removed
15 unmodified lines
16 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.output282930def test_call():31 # Mainly for coverage
22 unmodified lines
modified:tests/test_tutorial/test_commands/test_help/test_tutorial007_an.py+1 added-1 removed
16 unmodified lines
17 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.output222324def test_create_help():25 result = runner.invoke(app, ["create", "--help"])
32 unmodified lines
modified:tests/test_tutorial/test_commands/test_help/test_tutorial007.py+1 added-1 removed
16 unmodified lines
17 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.output222324def test_create_help():25 result = runner.invoke(app, ["create", "--help"])
32 unmodified lines