Skip to content

Streamline the if/else cases in tests a bit. #2582

@npalaska

Description

@npalaska
        if self.index_from_metadata:
            index = self.build_index_from_metadata()
        else:
            index = self.build_index(
                server_config,
                self.date_range(self.payload["start"], self.payload["end"]),
            )

This if/else is repeated several times, and that stands out in the pattern of your changes. It could really be refactored into a new superclass method, which would streamline the test cases a bit.

Originally posted by @dbutenhof in #2581 (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