Skip to content

Allow pytest to grab examples from a local repo clone instead of fetching them from GitHub #6481

@kruglov-dmitrii

Description

@kruglov-dmitrii

Description of the feature

Please allow specifying a path to a locally-copied example-data repo, from which the examples for pytests can be fetched.

Why:

  1. In some industries engineers have to work inside an environment with restricted internet access. Thus they cannot run pytests which require fetching examples from GitHub.
  2. When debugging issues found during pytest-testing, it would be great to have the examples locally stored so that we don't need to fetch the same files from GitHub over and over again.

Steps for implementing the feature

One option is to add a setting to the local_config.json and/or conftest.py with a path to the local copy of the example-data repo. Then, in the pytest files check If this setting is specified. If yes - then look for examples there rather than download them from GitHub. If no - grab from GitHub.
P.S. Can be an argument passed to the decorater.

Useful links and references

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features or code improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions