skodaconnect / myskoda

Python library for interacting with MySkoda APIs.
MIT License
7 stars 20 forks source link

Basic example for pytest #4

Closed dvx76 closed 1 month ago

dvx76 commented 1 month ago

Just an example. Not prescriptive.

Run with poetry run pytest tests/

Sorry about the shuffling in the pyproject.toml. It's the VSCode toml plugin.

dvx76 commented 1 month ago

Look into saved response fixtures in actual json files.

E.g.

fixtures/
    Enyaq 60 2024/
        airconditioning/
            already_running.json
            unavailable.json
        charging/
        other-endpoints/
    Octavia 6 2019/
dvx76 commented 1 month ago

Moved fixture to file

Prior99 commented 1 month ago

Merged this! Thank you!