microsoft/TypeAgent

Public

mirrored from https://github.com/microsoft/TypeAgentAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
cec0d16c5fde525af45867b0304f5551bfb76dea

Branches

Tags

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

Clone

HTTPS

Download ZIP

python/ta/test/fixtures.py

18lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4import tempfile
5
6import pytest
7
8from typeagent.aitools import auth
9
10
11@pytest.fixture(scope="session")
12def needs_auth():
13 auth.load_dotenv()
14
15@pytest.fixture
16def temp_dir():
17 with tempfile.TemporaryDirectory() as dir:
18 yield dir
19