This commit is contained in:
		
							
								
								
									
										6
									
								
								tests.py
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								tests.py
									
									
									
									
									
								
							@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user