Skip to content

Commit

Permalink
changing the test references
Browse files Browse the repository at this point in the history
  • Loading branch information
v-soujanya committed Jan 8, 2025
1 parent cab4f6c commit c269d7d
Show file tree
Hide file tree
Showing 22 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions azure-devops/azext_devops/tests/latest/boards/test_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from azext_devops.devops_sdk.v5_0.work.models import (TeamFieldValue,
TeamFieldValuesPatch)
from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper
from azext_devops.dev.boards.area import (get_project_areas,
get_project_area,
delete_project_area,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from mock import patch

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper
from azext_devops.dev.boards.iteration import (get_project_iterations,
get_project_iteration,
delete_project_iteration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from azext_devops.dev.boards.work_item import (delete_work_item,
show_work_item)
from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL
from azext_devops.tests.utils.authentication import AuthenticatedTests


class TestWorkItemMethods(AuthenticatedTests):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def test_pull_request_policies_workitems(self):

#List PR
pr_list = self.cmd('az repos pr list --project PullRequestLiveTest --repository PullRequestLiveTest --detect false --output json', checks=[
self.check("[0].description", "Updated README.md"),
self.check("[1].description", "Updated README.md"),
self.check("[0].description", 'Updated README.md'),
self.check("[1].description", 'Updated README.md'),
]).get_output_in_json()
assert len(pr_list) > 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from mock import patch

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.devops_sdk.v5_1.task_agent.task_agent_client import TaskAgentClient
from azext_devops.dev.pipelines.agent_pool_queue import list_pools, show_pool, list_agents, show_agent, list_queues, show_queue

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from mock import patch

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.dev.pipelines.pipeline_folders import (pipeline_folder_create,
pipeline_folder_delete,
pipeline_folder_list,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
from mock import patch

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests

from azext_devops.devops_sdk.v5_0.build.build_client import BuildClient
from azext_devops.devops_sdk.v6_0.pipelines.pipelines_client import PipelinesClient
from azext_devops.dev.pipelines.pipeline import pipeline_run
from azext_devops.test.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL
from azext_devops.tests.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL

class TestPipelinesRun(AuthenticatedTests):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from azext_devops.dev.pipelines.runs_artifacts import run_artifact_download, run_artifact_upload, run_artifact_list
from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.devops_sdk.v5_0.build.build_client import BuildClient
from azext_devops.dev.common.const import ARTIFACTTOOL_PAT_ENVKEY

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from azext_devops.dev.pipelines.build import (build_show)
from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.devops_sdk.v5_0.build.build_client import BuildClient


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
from azext_devops.dev.repos.import_request import create_import_request

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper


class TestImportRepositoryMethods(AuthenticatedTests):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from azext_devops.dev.repos.policy import *
from azext_devops.devops_sdk.v5_0.policy.models import PolicyConfiguration, PolicyTypeRef
from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.devops_sdk.v5_0.policy.policy_client import PolicyClient


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
from azext_devops.dev.common.git import get_current_branch_name, resolve_git_ref_heads

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL


class TestPullRequestMethods(AuthenticatedTests):
Expand Down
4 changes: 2 additions & 2 deletions azure-devops/azext_devops/tests/latest/repos/test_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from azext_devops.devops_sdk.v5_0.git.git_client import GitClient
from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.dev.repos.ref import (list_refs, create_ref, delete_ref, lock_ref, unlock_ref)
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper, TEST_DEVOPS_ORG_URL

class MockRef(object):
def __init__(self, object_id):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
update_repo)

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper


class TestRepositoryMethods(AuthenticatedTests):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from mock import patch
from azext_devops.dev.common.const import DEFAULTS_SECTION
from azext_devops.dev.team.configure import print_current_configuration, configure
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.dev.common.services import clear_connection_cache

class TestConfigureMethods(AuthenticatedTests):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
disable_extension)

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests

class MockInstalledExtension(object):
def __init__(self, flags, install_state=None):
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/tests/latest/team/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from azext_devops.dev.team.credentials import credential_set, credential_clear

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests

class TestLoginLogoutMethods(AuthenticatedTests):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
list_memberships)

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper

class TestSecurityGroupMethods(AuthenticatedTests):
_TEST_DEVOPS_ORGANIZATION = 'https://someorganization.visualstudio.com'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
_resolve_bits)

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper

class TestSecurityPermissionsMethods(AuthenticatedTests):
_TEST_DEVOPS_ORGANIZATION = 'https://someorganization.visualstudio.com'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
update_service_endpoint)

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.test.utils.helper import get_client_mock_helper
from azext_devops.tests.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.helper import get_client_mock_helper


class TestServiceEndpointMethods(AuthenticatedTests):
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/tests/latest/team/test_team.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
update_team)

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests


class TestTeamMethods(AuthenticatedTests):
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azext_devops/tests/latest/team/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
update_user_entitlement)

from azext_devops.dev.common.services import clear_connection_cache
from azext_devops.test.utils.authentication import AuthenticatedTests
from azext_devops.tests.utils.authentication import AuthenticatedTests


class TestUserMethods(AuthenticatedTests):
Expand Down

0 comments on commit c269d7d

Please sign in to comment.