Skip to content
This repository has been archived by the owner on Sep 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #88 from danbev/cloud-test-fixes
Browse files Browse the repository at this point in the history
fix qiskit-cloud integration tests
  • Loading branch information
jesusprubio authored Sep 5, 2019
2 parents 18db433 + 26232c8 commit f76b77e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `@qiskit/qiskit-qasm`: add core director to files in package.json
- `@qiskit/qiskit-bin`: fix minor typo in parse.js


> - 🐛 **Fixed**: for any bug fixes.
- `@qiskit/qiskit-cloud`: fix qiskit-cloud integration tests

## [0.9.0] - 2019-05-13

### ✏️ Changed
Expand Down
4 changes: 3 additions & 1 deletion packages/qiskit-cloud/test/functional/2-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const expectedKeys = [
'status',
'serialNumber',
'description',
'attributes',
'gateSet',
'basisGates',
'onlineDate',
Expand Down Expand Up @@ -165,6 +166,7 @@ describe('cloud:backend', () => {

// TODO: Cloning to fix API inconsistency.
const expectedFix = expectedKeys.slice(0);
expectedFix.splice(5, 1);
expectedFix.splice(10, 1);

assert.deepEqual(Object.keys(res), expectedFix);
Expand Down Expand Up @@ -196,7 +198,7 @@ describe('cloud:backends', () => {

const res = await global.qiskit.cloud.backends();

assert.equal(res.length, 4);
assert.equal(res.length, 5);
assert.deepEqual(Object.keys(res[0]), expectedKeys);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/qiskit-cloud/test/functional/3-credits.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('cloud:credits', () => {

const res = await global.qiskit.cloud.credits();

assert.deepEqual(Object.keys(res), ['remaining', 'maxUserType']);
assert.deepEqual(Object.keys(res).sort(), ['maxUserType', 'remaining']);
assert.equal(typeof res.remaining, 'number');
assert.equal(typeof res.maxUserType, 'number');
});
Expand Down

0 comments on commit f76b77e

Please sign in to comment.