Skip to content

Commit 0089584

Browse files
committed
fix tests
1 parent 58b6f76 commit 0089584

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

django_typer/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
extends that support to native Django_ management commands as well.
2121
2222
23-
The goal of django-typer_ is to provide full typer style functionality while maintaining
24-
compatibility with the Django management command system. This means that the BaseCommand
23+
The goal of django-typer_ is to provide full Typer_ style functionality while maintaining
24+
compatibility with the Django management command system. This means that the BaseCommand_
2525
interface is preserved and the Typer_ interface is added on top of it. This means that
2626
this code base is more robust to changes in the Django management command system - because
2727
most of the base class functionality is preserved but many Typer_ and click_ internals are
@@ -1544,7 +1544,7 @@ class write method.
15441544
class TyperCommand(BaseCommand, metaclass=TyperCommandMeta):
15451545
"""
15461546
An extension of BaseCommand_ that uses the Typer_ library to parse
1547-
arguments and options. This class adapts BaseCommand_ using a light touch
1547+
arguments_ and options_. This class adapts BaseCommand_ using a light touch
15481548
that relies on most of the original BaseCommand_ implementation to handle
15491549
default arguments and behaviors.
15501550
@@ -1626,7 +1626,8 @@ def command2(self, option: t.Optional[str] = None):
16261626
- Using the `rich_markup_mode parameter
16271627
<https://typer.tiangolo.com/tutorial/commands/help/#rich-markdown-and-markup>`_ to enable
16281628
markdown rendering in help output.
1629-
- Using the chain parameter to enable command chaining.
1629+
- Using the chain parameter to enable `command chaining
1630+
<https://click.palletsprojects.com/commands/#multi-command-chaining>`_.
16301631
16311632
16321633
We can see that our help renders like so:

django_typer/tests/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ def test_initialize_interface_matches(self):
228228
self.assertFalse(initialize_params.symmetric_difference(typer_params))
229229

230230
def test_typer_command_interface_matches(self):
231-
from django_typer import _TyperCommandMeta
231+
from django_typer import TyperCommandMeta
232232

233-
typer_command_params = set(get_named_arguments(_TyperCommandMeta.__new__))
233+
typer_command_params = set(get_named_arguments(TyperCommandMeta.__new__))
234234
typer_params = set(get_named_arguments(typer.Typer.__init__))
235235
typer_params.remove("name")
236236
typer_params.remove("add_completion")

0 commit comments

Comments
 (0)