mikebridge commented on code in PR #44424:
URL: https://github.com/apache/superset/pull/44424#discussion_r4098379213


##########
tests/integration_tests/versioning/restore_fails_closed_tests.py:
##########
@@ -372,12 +373,14 @@ def 
test_control_without_guard_the_partial_write_happens(self) -> None:
         before: str
         dataset, column, target_tx, before = self._two_version_dataset()
         assert column.description != before
-        parent_target_description: str = 
dataset.description.removesuffix("_v2")
+        dataset_uuid: UUID = dataset.uuid
+        assert dataset_uuid is not None
+        parent_target_description: str = (dataset.description or 
"").removesuffix("_v2")

Review Comment:
   Thanks, Evan — this is addressed in the merged head (`9cab1cf`). The test 
now asserts `dataset.description is not None` before calling 
`removesuffix("_v2")`; the `or ""` fallback is gone.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to