diff --git a/harvester.py b/harvester.py index 2ffdcf1..f9a6201 100755 --- a/harvester.py +++ b/harvester.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from devops import Organization +from sk.devops import Organization org = Organization("https://dev.azure.com/mcovsandbox") # print(org.projects["bafe0cf1-6c97-4088-864a-ea6dc02b2727"].repositories["feac266f-84d2-41bc-839b-736925a85eaa"].items["/generate-pat.py"]) diff --git a/devops.py b/sk/devops.py similarity index 100% rename from devops.py rename to sk/devops.py diff --git a/tests.py b/tests.py index 32ef9df..30f83a1 100755 --- a/tests.py +++ b/tests.py @@ -2,7 +2,7 @@ import unittest import requests from azure.identity import DefaultAzureCredential -from devops import DEVOPS_SCOPE, Organization, Repository, Project, Item +from sk.devops import DEVOPS_SCOPE, Organization, Repository, Project, Item # Get the token outside the test class to speed up tests. # Each Unit test instantinates the class, so doing it here avoids repeated authentication.