Skip to content

[feature] Have tests (and more?) support an extended controller by parameterizing config viewnames #298

@asmodehn

Description

@asmodehn

Is your feature request related to a problem? Please describe.
I am extending openwisp (users, controller, firmware-upgrader) as explained by the docs.
However, unless I am doing something wrong, it seems the tests here do not support depending on another config app. the admin:config_device_change viewname is hardcoded in quite a few places...

Describe the solution you'd like
firmware tests should support being extended support relying on extended config app.

Describe alternatives you've considered
I am currently copy pasting all the code that I need to replace this viewname... quite cumbersome (and not really maintainable in the long run)

Additional context
The doc points to the sample_app tests to duplicate in the extended app, but these do not assume an extended controller... maybe they should in order to raise that issue in tests ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    Status

    Backlog

    Status

    To do (general)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions