Skip to content

test: add recordings for new cp tests#153

Open
v-alexmoraru wants to merge 15 commits intomicrosoft:mainfrom
v-alexmoraru:dev/v-alexmoraru/record-new-tests-cp
Open

test: add recordings for new cp tests#153
v-alexmoraru wants to merge 15 commits intomicrosoft:mainfrom
v-alexmoraru:dev/v-alexmoraru/record-new-tests-cp

Conversation

@v-alexmoraru
Copy link
Member

No description provided.

@v-alexmoraru v-alexmoraru marked this pull request as ready for review February 11, 2026 07:19
@v-alexmoraru v-alexmoraru requested a review from a team as a code owner February 11, 2026 07:19
metadata = EntityMetadata(
generated_name, virtual_workspace_name, virtual_workspace_item_path
)
metadata.type = type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not adding the type to the ctor if you already defined it in the ctor?

# Teardown: remove everything we created during the test
for metadata in created_virtual_workspace_items:
if vcr_mode == "none" and metadata.type == VirtualWorkspaceType.CAPACITY:
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain this change?

@@ -5,6 +5,7 @@
import os
import shutil
import tempfile
import pytest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where does pytest is used in this file?

@@ -294,18 +297,20 @@ def test_cp_workspace_to_folder_success(
rm(copied_notebook.full_path)
rm(copied_eventhouse.full_path)

@cp_item_types_success_params
def test_cp_item_to_item_success(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does test_cp_item_to_item_success.yaml is still required?

@@ -382,18 +387,21 @@ def test_cp_item_to_item_type_mismatch_failure(
# Assert
assert_fabric_cli_error(constant.ERROR_UNSUPPORTED_COMMAND)

def test_cp_virtual_workspace_item_domain_not_supported_failure(
@cp_virtual_workspace_item_failure_params
def test_cp_virtual_workspace_item_not_supported_failure(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does test_cp_virtual_workspace_item_domain_not_supported_failure.yaml is still required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments