Skip to content

Pytest tests/tsc/test_vehicle.py failing #85

Description

@aladinoster

Description

The test tests/tsc/test_vehicles.py::test_create_vehicle_list_2_vehicles_gradual_update throws the following error:

    def test_create_vehicle_list_2_vehicles_gradual_update(
        simrequest, one_vehicle_xml, two_vehicle_xml
    ):
        simrequest.query = one_vehicle_xml
        vl = VehicleList(simrequest)
        assert len(vl) == 1
        assert vl[0].distance == 25.00
        simrequest.query = two_vehicle_xml
        vl.update_list()
>       assert len(vl) == 2
E       assert 1 == 2
E        +  where 1 = len(   abscissa  acceleration  distance  driven  ...  ordinate  speed vehid  vehtype\n0      75.0           0.0      75.0   False  ...       0.0   25.0     0       VL\n\n[1 rows x 11 columns])

tests/tsc/test_vehicles.py:133: AssertionError

Reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error '...'

Expected behavior

Tests when debugged via pytest --trace .. are ok. So the total test should also pass.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions