You are browsing as a guest. Sign up (or log in) to start making projects!

3h 45m 50s logged

Devlog

Working hard on pytest tests.
I learn how assert works and how to name .
I never used or created test in any language so I think they aren’t perfect (not like they should),but they work😄.
I looked like AI made few and how other people and read some stuff online

Tests created for these endpoints

Around 25 of them

  • List cars
  • About car
  • Engine info
  • Engine start/stop
  • Climate start/stop
  • Windows
  • Doors
  • Lock/Unlock
  • Reduced Guard Lock
  • Flash, Honk, and Combination
  • Tyres
  • Statistics
  • Fuel
  • Odometer
  • Engine diagnostics
  • Brakes
  • Command accessibility

Still to do 

  • Warnings and diagnostics
  • Commands

More changes

The tests helped me find and clean up several issues:

  • Documentation updates.
  • The honk endpoint was ../horn but should be /honk.
  • Some values (odometer, fuel) are int, just like in the OpenAPI specification, not as described in the official docs.
  • Fixed spelling mistakes:
      - oillevel to oilLevel
      - coolantLever to coolantLevel

Want to help and has access to volvo with active VOC

I need to test engine and climate endpoints but I don’t have an access to a car with it. Soooo if you can contact me on slack

0
8

Comments 0

No comments yet. Be the first!