Skip to content

Commit

Permalink
docs: Add description how to sort test data (#492)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md
  • Loading branch information
CFenner authored Jan 23, 2025
1 parent 6a0910e commit 581114d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,10 @@ vicare.initWithCredentials(email, password, client_id, "token.save")

with open(f"dump.json", mode='w') as output:
output.write(vicare.devices[0].dump_secure())
```

To make the test data comparable with future updates, it must be sorted. No worries, this can be done automatically using [`jq`](https://jqlang.github.io/jq/).

```sh
jq ".data|=sort_by(.feature)" --sort-keys testData.json > testDataSorted.json
```

0 comments on commit 581114d

Please sign in to comment.