Added project listing to the test.
This commit is contained in:
@@ -6,7 +6,12 @@ from json import dumps
|
||||
|
||||
org = Organization("https://dev.azure.com/mcovsandbox", DefaultAzureCredential().get_token(DEVOPS_SCOPE).token)
|
||||
|
||||
ado_sandbox = Project(org, project_id="bafe0cf1-6c97-4088-864a-ea6dc02b2727")
|
||||
# Listing projects in the organization
|
||||
print("Projects in the organization:")
|
||||
for project in org.projects:
|
||||
print(f"- {project.name} (ID: {project._id})")
|
||||
|
||||
ado_sandbox = Project(org, id="bafe0cf1-6c97-4088-864a-ea6dc02b2727")
|
||||
|
||||
repo = Repository(ado_sandbox, id_or_name="ado-auth-lab")
|
||||
print(str(repo))
|
||||
|
||||
Reference in New Issue
Block a user