[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-02-20 18:41:55 +00:00 committed by GitHub
parent fc91a7a38b
commit c693cb9789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -565,9 +565,11 @@ class TestDocumentSegmentIndexing:
import models.dataset as dataset_module
# Act
with patch.object(dataset_module.dify_config, "SECRET_KEY", "secret", create=True), patch(
"models.dataset.time.time", return_value=1700000000
), patch("models.dataset.os.urandom", return_value=b"\x00" * 16):
with (
patch.object(dataset_module.dify_config, "SECRET_KEY", "secret", create=True),
patch("models.dataset.time.time", return_value=1700000000),
patch("models.dataset.os.urandom", return_value=b"\x00" * 16),
):
signed = segment.get_sign_content()
# Assert