alexey-zakharenkov / subways

Subway Preprocessor and Validator
Apache License 2.0
12 stars 1 forks source link

Bug fixes #24

Closed alexey-zakharenkov closed 2 years ago

alexey-zakharenkov commented 2 years ago

Three bugs were fixed:

  1. The City.is_good property was created in the wrong assumption that the validation() method would be called for each city. In fact, if a CriticalValidationError occurs during city processing, the validation() won't be called.
  2. The 'Stop "{}" {} is nowhere near the tracks' validation error was mistakenly excluded and now resurrected
  3. 'colour' and 'infill' attributes were mixed up in one place.