Refactor tests.
This commit is contained in:
18
harvester.py
18
harvester.py
@@ -6,13 +6,17 @@ from json import dumps
|
|||||||
|
|
||||||
org = Organization("https://dev.azure.com/mcovsandbox", DefaultAzureCredential().get_token(DEVOPS_SCOPE).token)
|
org = Organization("https://dev.azure.com/mcovsandbox", DefaultAzureCredential().get_token(DEVOPS_SCOPE).token)
|
||||||
|
|
||||||
ado_sandbox = Project(org, id="bafe0cf1-6c97-4088-864a-ea6dc02b2727")
|
ado_sandbox = Project(org, project_id="bafe0cf1-6c97-4088-864a-ea6dc02b2727")
|
||||||
# print([str(repo) for repo in ado_sandbox.repositories])
|
|
||||||
|
|
||||||
# print(str(ado_sandbox.repositories[0]))
|
|
||||||
|
|
||||||
repo = Repository(ado_sandbox, id_or_name="feac266f-84d2-41bc-839b-736925a85eaa")
|
|
||||||
# repo = Repository(ado_sandbox, id_or_name="ado-auth-lab")
|
|
||||||
|
|
||||||
|
repo = Repository(ado_sandbox, id_or_name="ado-auth-lab")
|
||||||
print(str(repo))
|
print(str(repo))
|
||||||
print(f"Repository name: {repo.name} and URL: {repo.web_url}")
|
print(f"Repository name: {repo.name} and URL: {repo.web_url}")
|
||||||
|
|
||||||
|
repo = Repository(ado_sandbox, id_or_name="feac266f-84d2-41bc-839b-736925a85eaa")
|
||||||
|
print(str(repo))
|
||||||
|
print(f"Repository name: {repo.name} and URL: {repo.web_url}")
|
||||||
|
|
||||||
|
print("Listing items in the repository:")
|
||||||
|
|
||||||
|
for item in repo.items:
|
||||||
|
print(f"{item.path} ({item.git_object_type}): {item.commit_id}")
|
||||||
|
|||||||
Reference in New Issue
Block a user