Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytest tests/tsc/test_vehicle.py failing #85

Open
aladinoster opened this issue Nov 8, 2021 · 1 comment
Open

Pytest tests/tsc/test_vehicle.py failing #85

aladinoster opened this issue Nov 8, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@aladinoster
Copy link
Contributor

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.

@aladinoster aladinoster self-assigned this Nov 8, 2021
@aladinoster aladinoster added the bug Something isn't working label Nov 8, 2021
@aladinoster aladinoster added this to the v1.0.2 milestone Nov 17, 2021
@aladinoster
Copy link
Contributor Author

No updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant