Skip to content

Improve testing #139

@SlowMo24

Description

@SlowMo24

We currently use integration testing nearly everywhere but at the same time not properly.

  • swap integration test (using VCR) for unit-testing (testing only the method of concern) where possible.
  • fix cassette matching for VCR. Currently nearly all cassettes are matched/found based on the full request. Yet, many aspects of the request like header (containing the ohsome-py version) do not matter for the test itself. E.g. if the functionality of an endpoint is tested and that test is independent of the header, the cassette matching should only be done on the endpoint, not the header (https://cran.r-project.org/web/packages/vcr/vignettes/request_matching.html).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions