Skip to main content

No project description provided

Project description

behave_auto_docstring

Adds a simple docstring to behave step, e.g.

from behave_auto_docstring import when

@when("A function is declared")
def function(context): ...

is equivalent to

from behave import when

@when("A function is declared")
def function(context):
    """
    Usage:

    ```gherkin
    When A function is declared
    ```
    """"

Usage with mkdocs

For mkdocstrings to parse the resulting docs, you need to add

plugins:
  - mkdocstrings:
      handlers:
        python:
          options:
            extensions:
              - behave_auto_docstring.griffe

to your mkdocs.yml file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

behave_auto_docstring-0.1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

behave_auto_docstring-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file behave_auto_docstring-0.1.3.tar.gz.

File metadata

File hashes

Hashes for behave_auto_docstring-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e4245ffa9c3c8a0e0fd03103f6ee7dd674e18c489912cdb837403c1b68d8a834
MD5 2cc4ddff5ddc193ac077f31509e7be21
BLAKE2b-256 214aac4077ce6b11260481cbb5bdf0aa083c6467b3db1cce61571f78da1500e7

See more details on using hashes here.

File details

Details for the file behave_auto_docstring-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for behave_auto_docstring-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1ddbf9fa471b4f0f5a88099a8509c681351837f1abaa28fa51538c605ab10a4a
MD5 c14f78aa2a1c94214f7069ee0d3e107c
BLAKE2b-256 e5ec7943538b3301cba237b799aceb8477e26a4b394c2452993581a88593810b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page