microsoft/TypeAgent

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b62cf9c41e742e9cca5d50712a75becaa049ab38

Branches

Tags

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

Clone

HTTPS

Download ZIP

python/ta/test/fixtures.py

19lines · 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
16@pytest.fixture
17def temp_dir():
18 with tempfile.TemporaryDirectory() as dir:
19 yield dir