Skip to content

Allow tests requiring multiple servers at once #50

Closed

Description

@tenuki

Remove Plugin.SERVER singleton in order to make http-server reusable

Based on the need we had we used pytest-httpserver to test multiple server instances running at once. After checking documentation and background we found that on the purpose of the single was to override start-up time on werzeuk server library. We confirmed that that is not the case anymore at least at Werkzeug==1.0.1 (so we need to update documentation too).

tests_original_src

tests_with_changes

Activity

  1. tenuki commented on Nov 29, 2020

    @tenuki
    Author

    The overhead in the werzeuk server creation seems to still be present, although the tests quoted above doesn't show it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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