Renders acceptance tests based on the provided parameters. Args: frid (str): The unique identifier for the functionality. plain_source_tree (dict): A dictionary containing the plain source tree. linked_resources (dict): A dictionary where the key
(
self,
frid,
plain_source_tree,
linked_resources,
existing_files_content,
memory_files_content,
conformance_tests_files,
module_name: str,
required_modules,
acceptance_test,
run_state: RunState,
)
| 407 | return self.post_request(endpoint_url, headers, payload, run_state) |
| 408 | |
| 409 | def render_acceptance_tests( |
| 410 | self, |
| 411 | frid, |
| 412 | plain_source_tree, |
| 413 | linked_resources, |
| 414 | existing_files_content, |
| 415 | memory_files_content, |
| 416 | conformance_tests_files, |
| 417 | module_name: str, |
| 418 | required_modules, |
| 419 | acceptance_test, |
| 420 | run_state: RunState, |
| 421 | ): |
| 422 | """ |
| 423 | Renders acceptance tests based on the provided parameters. |
| 424 | |
| 425 | Args: |
| 426 | frid (str): The unique identifier for the functionality. |
| 427 | plain_source_tree (dict): A dictionary containing the plain source tree. |
| 428 | linked_resources (dict): A dictionary where the keys represent resource names |
| 429 | and the values are the content of those resources. |
| 430 | existing_files_content (dict): A dictionary where the keys represent code base |
| 431 | filenames and the values are the content of those files. |
| 432 | memory_files_content (dict): A dictionary where the keys represent memory filenames |
| 433 | and the values are the content of those files. |
| 434 | conformance_tests_files (dict): A dictionary containing conformance test files. |
| 435 | required_modules (dict): A dictionary where the keys represent module names |
| 436 | and the values are lists of functionalities implemented in those modules. |
| 437 | acceptance_test (dict): A dictionary containing acceptance test information. |
| 438 | |
| 439 | Returns: |
| 440 | dict: The rendered acceptance tests. |
| 441 | |
| 442 | Raises: |
| 443 | Exception: If the request fails or returns an error. |
| 444 | """ |
| 445 | endpoint_url = f"{self.api_url}/render_acceptance_tests" |
| 446 | headers = {"X-API-Key": self.api_key, "Content-Type": "application/json"} |
| 447 | |
| 448 | payload = { |
| 449 | "frid": frid, |
| 450 | "plain_source_tree": plain_source_tree, |
| 451 | "linked_resources": linked_resources, |
| 452 | "existing_files_content": existing_files_content, |
| 453 | "memory_files_content": memory_files_content, |
| 454 | "conformance_tests_files": conformance_tests_files, |
| 455 | "module_name": module_name, |
| 456 | "required_modules": required_modules, |
| 457 | "acceptance_test": acceptance_test, |
| 458 | } |
| 459 | |
| 460 | return self.post_request(endpoint_url, headers, payload, run_state) |
| 461 | |
| 462 | def analyze_rendering( |
| 463 | self, |