standardbots 2.0.0.dev1740502639__tar.gz → 2.0.0.dev1744991264__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of standardbots might be problematic. Click here for more details.
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/PKG-INFO +2 -2
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/README.md +13 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/setup.py +1 -1
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots/auto_generated/models.py +0 -15
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots.egg-info/PKG-INFO +2 -2
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/tests/test_apis.py +4 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/setup.cfg +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots/__init__.py +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots/auto_generated/__init__.py +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots/auto_generated/apis.py +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots.egg-info/SOURCES.txt +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots.egg-info/dependency_links.txt +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots.egg-info/requires.txt +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots.egg-info/top_level.txt +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/tests/fixtures/__init__.py +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/tests/fixtures/client_fixt.py +0 -0
- {standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/tests/fixtures/routines_fixt.py +0 -0
|
@@ -20,6 +20,19 @@ To run a script move into the `sdks/python` folder and run `python playground/fi
|
|
|
20
20
|
|
|
21
21
|
# Tests
|
|
22
22
|
|
|
23
|
+
## `botctl` commands
|
|
24
|
+
|
|
25
|
+
You may now use the `botctl` commands to setup and run tests.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Setup testing environment
|
|
29
|
+
botctl publicapi test:setup --help
|
|
30
|
+
|
|
31
|
+
# Run tests
|
|
32
|
+
botctl publicapi test --help
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
|
|
23
36
|
## Setup
|
|
24
37
|
|
|
25
38
|
To set up tests:
|
|
@@ -6574,7 +6574,6 @@ class ArmPositionUpdateRequest:
|
|
|
6574
6574
|
joint_rotation: Union[ArmJointRotations, None] = None
|
|
6575
6575
|
movement_kind: Union[MovementKindEnum, None] = None
|
|
6576
6576
|
speed_profile: Union[SpeedProfile, None] = None
|
|
6577
|
-
response: Union[ArmPositionUpdateRequestResponseFormat, None] = None
|
|
6578
6577
|
|
|
6579
6578
|
def validate_kind(self, value: ArmPositionUpdateRequestKindEnum) -> Tuple[bool, str]:
|
|
6580
6579
|
if value is None:
|
|
@@ -6639,15 +6638,6 @@ class ArmPositionUpdateRequest:
|
|
|
6639
6638
|
|
|
6640
6639
|
return [True, ""]
|
|
6641
6640
|
|
|
6642
|
-
def validate_response(self, value: ArmPositionUpdateRequestResponseFormat) -> Tuple[bool, str]:
|
|
6643
|
-
if value is None:
|
|
6644
|
-
return [True, ""]
|
|
6645
|
-
|
|
6646
|
-
if not isinstance(value, ArmPositionUpdateRequestResponseFormat):
|
|
6647
|
-
return [False, "response must be of type ArmPositionUpdateRequestResponseFormat for ArmPositionUpdateRequest, got " + type(value).__name__]
|
|
6648
|
-
|
|
6649
|
-
return [True, ""]
|
|
6650
|
-
|
|
6651
6641
|
def __post_init__(self):
|
|
6652
6642
|
# Type check incoming model - raise error if invalid (required or wrong type)
|
|
6653
6643
|
is_valid, error_str = self.validate_kind(self.kind)
|
|
@@ -6671,9 +6661,6 @@ class ArmPositionUpdateRequest:
|
|
|
6671
6661
|
is_valid, error_str = self.validate_speed_profile(self.speed_profile)
|
|
6672
6662
|
if not is_valid:
|
|
6673
6663
|
raise TypeError(error_str)
|
|
6674
|
-
is_valid, error_str = self.validate_response(self.response)
|
|
6675
|
-
if not is_valid:
|
|
6676
|
-
raise TypeError(error_str)
|
|
6677
6664
|
|
|
6678
6665
|
def parse_arm_position_update_request(data: object):
|
|
6679
6666
|
return ArmPositionUpdateRequest(
|
|
@@ -6684,7 +6671,6 @@ def parse_arm_position_update_request(data: object):
|
|
|
6684
6671
|
joint_rotation=parse_arm_joint_rotations(data["joint_rotation"]) if "joint_rotation" in data and data.get("joint_rotation") is not None else None,
|
|
6685
6672
|
movement_kind=parse_movement_kind_enum(data["movement_kind"]) if "movement_kind" in data and data.get("movement_kind") is not None else None,
|
|
6686
6673
|
speed_profile=parse_speed_profile(data["speed_profile"]) if "speed_profile" in data and data.get("speed_profile") is not None else None,
|
|
6687
|
-
response=parse_arm_position_update_request_response_format(data["response"]) if "response" in data and data.get("response") is not None else None,
|
|
6688
6674
|
)
|
|
6689
6675
|
|
|
6690
6676
|
def serialize_arm_position_update_request(data: ArmPositionUpdateRequest) -> object:
|
|
@@ -6696,7 +6682,6 @@ def serialize_arm_position_update_request(data: ArmPositionUpdateRequest) -> obj
|
|
|
6696
6682
|
"joint_rotation": None if data.joint_rotation is None else serialize_arm_joint_rotations(data.joint_rotation),
|
|
6697
6683
|
"movement_kind": None if data.movement_kind is None else serialize_movement_kind_enum(data.movement_kind),
|
|
6698
6684
|
"speed_profile": None if data.speed_profile is None else serialize_speed_profile(data.speed_profile),
|
|
6699
|
-
"response": None if data.response is None else serialize_arm_position_update_request_response_format(data.response),
|
|
6700
6685
|
}
|
|
6701
6686
|
|
|
6702
6687
|
@dataclass
|
|
@@ -1092,6 +1092,10 @@ class TestPostMovementPositionArm:
|
|
|
1092
1092
|
== models.ArmPositionUpdateFailureEventKind.MotionFailedUnknownReason
|
|
1093
1093
|
)
|
|
1094
1094
|
|
|
1095
|
+
# recover from failed position update
|
|
1096
|
+
res_recover = client.recovery.recover.recover()
|
|
1097
|
+
assert not res_recover.isNotOk()
|
|
1098
|
+
|
|
1095
1099
|
def test_invalid_joint_and_tooltip_request(
|
|
1096
1100
|
self, client_live: StandardBotsRobot
|
|
1097
1101
|
) -> None:
|
|
File without changes
|
{standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/standardbots/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/tests/fixtures/__init__.py
RENAMED
|
File without changes
|
{standardbots-2.0.0.dev1740502639 → standardbots-2.0.0.dev1744991264}/tests/fixtures/client_fixt.py
RENAMED
|
File without changes
|
|
File without changes
|