Skip to content

Commit ef22a62

Browse files
committed
refactored out test that should had not been here
1 parent 281f7aa commit ef22a62

File tree

2 files changed

+24
-39
lines changed

2 files changed

+24
-39
lines changed

tests/integration/llms/prompt_to_json/use_cases/test_Json_Prompt__Document_Improver.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
from osbot_llms.llms.prompt_to_json.Prompt_To_Json__Open_AI import Prompt_To_Json__Open_AI
44
from osbot_llms.llms.prompt_to_json.use_cases.Json_Prompt__Document_Improver import Json_Prompt__Document_Improver, Model__Response_Format__Json_Prompt__Document_Improver
55

6+
7+
68
class test_Json_Prompt__Document_Improver(TestCase):
79

810
@classmethod
@@ -48,4 +50,25 @@ def test_improve_document__formatting(self):
4850

4951
assert response['response_parsed'].status == "success"
5052
assert any(change.type == "formatting" for change in response['response_parsed'].document.changes)
51-
assert "Problem Statement" in response['response_parsed'].document.new_version
53+
assert "Problem Statement" in response['response_parsed'].document.new_version
54+
55+
#note: in 4o , there is weird behaviour where using 'add 1 paragraph to summary' will make it go into a spin and either timeout or fail with a 'reached max 16k tokens' error
56+
# def test__bug__request_that_was_timing_out_in_browser(self):
57+
# data = {"current_content":"## GDPR Compliance Guidelines\n\nThe GDPR outlines essential principles and requirements for processing personal data, "
58+
# "emphasizing lawfulness, fairness, and transparency. Organizations must obtain explicit consent, maintain records, "
59+
# "implement privacy measures, report breaches, conduct impact assessments, and appoint a DPO if necessary. "
60+
# "Individuals have several rights, including access, rectification, erasure, and portability. "
61+
# "Technical measures such as encryption, security testing, and access controls are mandatory. "
62+
# "Documentation is required for various processes, and international data transfers must follow specific guidelines.\n\n"
63+
# "### Additional Considerations\n\n1. "
64+
# "**Data Minimization**: Organizations should only collect personal data that is necessary for the specified purpose.\n2. "
65+
# "**Purpose Limitation**: Personal data should only be collected for specified, legitimate purposes and not further processed in a manner incompatible with those purposes.\n3. "
66+
# "**Data Protection by Design and by Default**: Organizations should implement appropriate technical and organizational measures to ensure that, by default, only personal data necessary for each specific purpose is processed.\n4. "
67+
# "**Data Breach Notification**: Organizations must notify the relevant supervisory authority of a data breach within 72 hours of becoming aware of it, unless the breach is unlikely to result in a risk to the rights and freedoms of individuals.\n5. "
68+
# "**Data Subject Rights**: Organizations must ensure that individuals can easily exercise their rights under the GDPR, including the right to access their data, request corrections, and object to processing.",
69+
# "improvement_request":"add 1 paragraph to summary" }
70+
# original_content = data.get('current_content')
71+
# improvement_request = data.get('improvement_request')
72+
# with self.document_improver as _:
73+
# response = _.improve_document(original_content, improvement_request)
74+
# pprint(response)

tests/integration/testing/test_TestCase__S3_Minio__Temp_S3_Bucket.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)