Updated authentication scenarios.
All checks were successful
/ unit-tests (push) Successful in 9s

This commit is contained in:
2025-11-03 21:24:25 +01:00
parent 678b6161cc
commit 31e1b88cd1
3 changed files with 50 additions and 7 deletions

View File

@@ -1,12 +1,12 @@
#!/usr/bin/env python3
import unittest
import requests
from azure.identity import DefaultAzureCredential
from sk.devops import DEVOPS_SCOPE, Organization, Repository, Project, Item
from sk.devops import Organization, Repository, Project, Item
from sk.azure import get_token
# Get the token outside the test class to speed up tests.
# Each Unit test instantinates the class, so doing it here avoids repeated authentication.
token = DefaultAzureCredential().get_token(DEVOPS_SCOPE).token
token = get_token()
class Test01(unittest.TestCase):
def setUp(self):