Skip to content

Decorator resolves as wron file path  #99

@aaltat

Description

@aaltat

Reported in MarketSquare/robotframework-browser#2382

Original issue says
Describe the bug

In the documentation generated with libdoc (in JSON or libspec format), the source file for the keyword New Context is Browser/utils/deprecated.py.

To Reproduce
Steps to reproduce the behavior:

Execute libdoc Browser browser.json
Search for "name": "New Context" and then for "source":
Expected behavior

The source of the keyword New Context is

OS: Windows 10

The keyword New Context has the following definition

@keyword(tags=("Setter", "BrowserControl"))
@attribute_warning(
    old_args=("videosPath", "videoSize"), new_args=("recordVideo", "recordVideo")
)
def new_context(
    self,
    ...
)

Apparently, libdoc expects that the line after the keyword decorator is a function definition.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions