OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
458 stars 43 forks source link

editoast: stdcm_search_environment unit tests fail when run in a DB with an existing environment #8574

Closed leovalais closed 2 months ago

leovalais commented 2 months ago

What happened?

When a search environment already exists in the DB the tests are run with, unit tests fail. There's a pre-set search env in the shared dumps.

What did you expect to happen?

Not fail.

How can we reproduce it (as minimally and precisely as possible)?

  1. Apply the latest dump.
  2. Run the tests cargo test -- stdcm_search
  3. Contemplate the multiple failures
  4. Cry

On which environments the bug occurs?

Local

On which browser the bug occurs?

Other

OSRD version (top right corner Account button > Informations)

dev