Skip to content

Commit 64b3ae0

Browse files
committed
[ci] Use pyproject.toml for pip-audit
1 parent 192d9b7 commit 64b3ae0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/pyatlan-pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
GHSA-pq67-6m6q-mj2v
3838
summary: true
3939
vulnerability-service: osv
40-
inputs: requirements.txt requirements-dev.txt
40+
inputs: .
4141

4242
qa-checks-and-unit-tests:
4343
needs: [vulnerability-scan]

tests/integration/test_client.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from pyatlan.model.user import UserMinimalResponse
4949
from tests.integration.client import TestId
5050
from tests.integration.lineage_test import create_database, delete_asset
51-
from tests.integration.requests_test import delete_token
51+
from tests.integration.requests_test import create_token, delete_token
5252

5353
CLASSIFICATION_NAME = "Issue"
5454
CLASSIFICATION_NAME2 = "Confidential"
@@ -65,6 +65,16 @@
6565
call_count = 0
6666

6767

68+
@pytest.fixture(scope="module")
69+
def token(client: AtlanClient) -> Generator[ApiToken, None, None]:
70+
token = None
71+
try:
72+
token = create_token(client, MODULE_NAME)
73+
yield token
74+
finally:
75+
delete_token(client, token)
76+
77+
6878
@pytest.fixture(scope="module")
6979
def expired_token(client: AtlanClient) -> Generator[ApiToken, None, None]:
7080
token = None

0 commit comments

Comments
 (0)