dwavesystems / demos

WARNING: This repo is obsolete. For D-Wave Ocean code examples, go to the `dwave-examples` GitHub account.
https://github.com/dwave-examples
Apache License 2.0
37 stars 36 forks source link

Fix/demo tests #117

Closed m3ller closed 4 years ago

m3ller commented 4 years ago

Several minor fixes to the demos repo

  1. Allow failed unit tests to be skipped in order for the remaining unit tests to be run. This means that the last bad exit status is stored until after the loop (running the demo tests) completes - by this time, the exit status is then returned.
  2. Use assertalmostequal for energy comparisons as they're stored in floats
  3. Include jsonschema in structural-imbalance requirements.txt

Note: I'm most concerned about Fix 1 as I'm not sure if it's the best way to deal with the exit code.