mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-12 07:45:14 -05:00
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
27 lines
851 B
Dart
27 lines
851 B
Dart
import 'package:auto_gpt_flutter_client/models/step_request_body.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
group('StepRequestBody', () {
|
|
test('should create StepRequestBody with correct values', () {
|
|
final stepRequestBody = StepRequestBody(
|
|
input: 'Execute something', additionalInput: {'key': 'value'});
|
|
|
|
expect(stepRequestBody.input, 'Execute something');
|
|
expect(stepRequestBody.additionalInput, {'key': 'value'});
|
|
});
|
|
|
|
test('should convert StepRequestBody to correct JSON', () {
|
|
final stepRequestBody = StepRequestBody(
|
|
input: 'Execute something', additionalInput: {'key': 'value'});
|
|
|
|
final json = stepRequestBody.toJson();
|
|
|
|
expect(json, {
|
|
'input': 'Execute something',
|
|
'additional_input': {'key': 'value'}
|
|
});
|
|
});
|
|
});
|
|
}
|