pytest provides a fixture for this use-case: monkeypatch.syspath_prepend . You may prepend a path to sys.path list of import locations.
確定! 回上一頁