-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ken Payne
committed
Jan 26, 2023
1 parent
44d7308
commit ba35f4d
Showing
4 changed files
with
33 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"python.testing.pytestArgs": ["tests"], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,3 @@ | ||
"""Conftest fixtures.""" | ||
|
||
import json | ||
import os | ||
|
||
import pytest | ||
|
||
from .utilities import get_secrets_dict | ||
|
||
pytest_plugins = ("singer_sdk.testing.pytest_plugin",) | ||
|
||
|
||
@pytest.fixture(scope="module") | ||
def config(): | ||
"""Write secrets file then clean it up after tests.""" | ||
secrets_path = f"{os.path.dirname(__file__)}/test_data/client_secrets.json" | ||
with open(secrets_path, "w") as f: | ||
json.dump(get_secrets_dict(), f) | ||
yield | ||
os.remove(secrets_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters