Skip to content

Conversation

@MariusWirtz
Copy link
Collaborator

@MariusWirtz MariusWirtz commented Oct 13, 2025

Consider the actual TM1 config value for DisableSandboxing

Fix unrelated assertion issue in test_clear_with_mdx_invalid_query

Fixes #1285

@MariusWirtz MariusWirtz requested a review from Copilot October 13, 2025 21:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the sandboxing_disabled property in the RestService class to properly retrieve the TM1 configuration value and corrects a test assertion that was checking for an incorrect error message.

  • Updated REST API call to use proper JSON response parsing instead of direct value extraction
  • Fixed test assertion to check for the correct error message content

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
TM1py/Services/RestService.py Modified sandboxing_disabled property to use correct API endpoint and JSON parsing
Tests/CellService_test.py Updated test assertion to match actual error message format

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Consider actual TM1 config value for DisableSandboxing
Fix unrelated assertion issue in test_clear_with_mdx_invalid_query

Fixes #1285
@github-actions
Copy link
Contributor

Tests completed for environment: tm1-11-cloud. Check artifacts for details.

@MariusWirtz MariusWirtz merged commit 7c4f71d into master Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

self._rest.sandboxing_disabled is evaluated wrongly

2 participants