microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
7421e7dd1015dcbd940bf843d33583470de580ea

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

source/qdk_package/tests/conftest.py

17lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4import sys
5from pathlib import Path
6
7# Add local 'src' so 'qdk' can be imported without installation and add tests dir so 'mocks' is importable.
8_root = Path(__file__).resolve().parent
9_src = _root.parent / "src"
10for p in (_src, _root):
11 if str(p) not in sys.path:
12 sys.path.insert(0, str(p))
13
14# Ensure a qsharp stub (if real package absent) via centralized mocks helper.
15import mocks
16
17mocks.mock_qsharp()
18