Merge pull request #669 from StanfordVL/remove-assertions #56
GitHub Actions / Test Results
failed
Mar 20, 2024 in 0s
79 passed, 1 failed and 14 skipped
❌ results.xml
94 tests were completed in 3519s with 79 passed, 1 failed and 14 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
pytest | 79✅ | 1❌ | 14⚪ | 3519s |
❌ pytest
tests.test_dump_load_states
✅ test_dump_load
✅ test_dump_load_serialized
tests.test_envs
✅ test_dummy_task
✅ test_point_reaching_task
✅ test_point_navigation_task
✅ test_behavior_task
✅ test_rs_int_full_load
tests.test_object_removal
✅ test_removal_and_readdition
✅ test_readdition
tests.test_object_states
✅ test_on_top
✅ test_inside
✅ test_under
✅ test_touching
✅ test_contact_bodies
✅ test_next_to
✅ test_overlaid
✅ test_pose
✅ test_aabb
✅ test_adjacency
✅ test_temperature
✅ test_max_temperature
✅ test_heat_source_or_sink
✅ test_cooked
✅ test_burnt
✅ test_frozen
✅ test_heated
✅ test_on_fire
✅ test_toggled_on
⚪ test_attached_to
✅ test_particle_source
✅ test_particle_sink
✅ test_particle_applier
✅ test_particle_remover
✅ test_saturated
✅ test_open
✅ test_folded_unfolded
✅ test_draped
✅ test_filled
✅ test_contains
✅ test_covered
✅ test_clear_sim
tests.test_primitives
✅ test_navigate
✅ test_grasp
✅ test_place
⚪ test_open_prismatic
⚪ test_open_revolute
tests.test_robot_states
✅ test_camera_pose_flatcache_on
✅ test_camera_pose_flatcache_off
✅ test_camera_semantic_segmentation
✅ test_object_in_FOV_of_robot
tests.test_robot_teleoperation
⚪ test_teleop
tests.test_sensors
✅ test_seg
✅ test_clear_sim
tests.test_symbolic_primitives.TestSymbolicPrimitives
⚪ test_in_hand_state
⚪ test_open
⚪ test_close
⚪ test_place_inside
⚪ test_place_ontop
⚪ test_toggle_on
⚪ test_soak_under
⚪ test_wipe
⚪ test_cut
✅ test_persistent_sticky_grasping
tests.test_systems
✅ test_system_clear
tests.test_transition_rules
⚪ test_dryer_rule
✅ test_washer_rule
✅ test_slicing_rule
✅ test_dicing_rule_cooked
✅ test_dicing_rule_uncooked
✅ test_melting_rule
✅ test_cooking_physical_particle_rule_failure_recipe_systems
✅ test_cooking_physical_particle_rule_success
✅ test_mixing_rule_failure_recipe_systems
✅ test_mixing_rule_failure_nonrecipe_systems
✅ test_mixing_rule_success
✅ test_cooking_system_rule_failure_recipe_systems
✅ test_cooking_system_rule_failure_nonrecipe_systems
✅ test_cooking_system_rule_failure_nonrecipe_objects
✅ test_cooking_system_rule_success
❌ test_cooking_object_rule_failure_wrong_container
def wrapper():
✅ test_cooking_object_rule_failure_recipe_objects
✅ test_cooking_object_rule_failure_unary_states
✅ test_cooking_object_rule_failure_binary_system_states
✅ test_cooking_object_rule_failure_binary_object_states
✅ test_cooking_object_rule_failure_wrong_heat_source
✅ test_cooking_object_rule_success
✅ test_single_toggleable_machine_rule_output_system_failure_wrong_container
✅ test_single_toggleable_machine_rule_output_system_failure_recipe_systems
✅ test_single_toggleable_machine_rule_output_system_failure_recipe_objects
✅ test_single_toggleable_machine_rule_output_system_failure_nonrecipe_systems
✅ test_single_toggleable_machine_rule_output_system_failure_nonrecipe_objects
✅ test_single_toggleable_machine_rule_output_system_success
✅ test_single_toggleable_machine_rule_output_object_failure_unary_states
✅ test_single_toggleable_machine_rule_output_object_success
Annotations
Check failure on line 0 in results.xml
github-actions / Test Results
pytest ► tests.test_transition_rules ► test_cooking_object_rule_failure_wrong_container
Failed test found in:
results.xml
Error:
def wrapper():
Raw output
def wrapper():
assert_test_scene()
try:
> func()
tests/utils.py:24:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
@og_test
def test_cooking_object_rule_failure_wrong_container():
assert len(REGISTERED_RULES) > 0, "No rules registered!"
oven = og.sim.scene.object_registry("name", "oven")
stockpot = og.sim.scene.object_registry("name", "stockpot")
bagel_dough = og.sim.scene.object_registry("name", "bagel_dough")
raw_egg = og.sim.scene.object_registry("name", "raw_egg")
sesame_seed = get_system("sesame_seed")
initial_bagels = og.sim.scene.object_registry("category", "bagel", set()).copy()
place_obj_on_floor_plane(oven)
og.sim.step()
# This fails the recipe because it requires the baking sheet to be inside the oven, not the stockpot
stockpot.set_position_orientation([0, 0, 0.47], [0, 0, 0, 1])
og.sim.step()
assert stockpot.states[Inside].get_value(oven)
bagel_dough.set_position_orientation([0, 0, 0.45], [0, 0, 0, 1])
raw_egg.set_position_orientation([0.02, 0, 0.50], [0, 0, 0, 1])
og.sim.step()
> assert bagel_dough.states[Inside].get_value(stockpot)
E assert False
E + where False = <bound method BaseObjectState.get_value of <omnigibson.object_states.inside.Inside object at 0x7fa5c4343df0>>(<omnigibson.objects.dataset_object.DatasetObject object at 0x7fa5dc1354e0>)
E + where <bound method BaseObjectState.get_value of <omnigibson.object_states.inside.Inside object at 0x7fa5c4343df0>> = <omnigibson.object_states.inside.Inside object at 0x7fa5c4343df0>.get_value
tests/test_transition_rules.py:780: AssertionError
Loading