Skip to content

Improve readability of tests #73

@shsms

Description

@shsms

I find this way of wiring things up quite hard to read. I know it's everywhere already, but could we rather do something like this:

connections = {
    ComponentConnection(source=grid.id, destination=meter.id),
    ComponentConnection(source=meter.id, destination=inverter.id),
    ComponentConnection(source=inverter.id, destination=target.id),
}

Originally posted by @simonvoelcker in #72 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions