Giter Club home page Giter Club logo

pytest-scenario-files's People

Contributors

paulsuh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pytest-scenario-files's Issues

Integration with responses and pytest-httpx

A very common use case for stored data is to set up mock calls to outside services using requests or https, which are then mocked out for unit tests by using responses or pytest-httpx.

Enhancement request: add a way to set up responses or pytest-httpx easily without writing a separate pytest fixture.

May depend on issue #1

Add option to import fixture data from multiple sources

Right now it is only possible to import all of a fixture's data from another source. There is no way to import and merge data from multiple sources. It would be nice to be able to pull lists from multiple sources and have them be merged into a single list. For example:

scenario_1:
  fixture_a:
    - fixture_a_local_value
    - __file_AAA.yaml:scenario_1:fixture_a_value_1
    - __file_BBB.yaml:scenario_1:fixture_a_values_list_2

This would be merged into a single list for fixture_a. If the imported data is a non-list value it will be added to the list as in fixture_a_value_1. If the imported data is a list value then the imported list will be appended to the existing list as in fixture_a_values_list_2. Local values are also permitted for the list.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.