Skip to content

Commit

Permalink
Add PR number to CHANGELOG, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ollityrkko committed Jun 11, 2024
1 parent 6e274bb commit c227d19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Changelog
Version 14.1
============

* Require iqm-client >= 17.6.
* Require iqm-client >= 17.6. `#132 <https://github.com/iqm-finland/cirq-on-iqm/pull/132>`_

Version 14.0
============
Expand Down
8 changes: 5 additions & 3 deletions tests/test_iqm_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import uuid

import cirq
from mockito import ANY, expect, mock, verify, when
from mockito import ANY, mock, verify, when
import numpy as np
import pytest
import sympy # type: ignore
Expand Down Expand Up @@ -374,6 +374,8 @@ def test_close_client():
'password': 'fake-password',
}
sampler = IQMSampler('http://url', Adonis(), **user_auth_args)
sampler._client = mock(IQMClient)
expect(sampler._client, times=1).close_auth_session().thenReturn(True)
mock_client = mock(IQMClient)
sampler._client = mock_client
when(mock_client).close_auth_session().thenReturn(True)
sampler.close_client()
verify(mock_client, times=1).close_auth_session()

0 comments on commit c227d19

Please sign in to comment.