Merge pull request #2191 from alphagov/json-boolean

Store boolean values in Redis as valid JSON
This commit is contained in:
Chris Hill-Scott
2018-07-31 12:24:38 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ class JobApiClient(NotifyAdminAPIClient):
self.redis_client.set(
'has_jobs-{}'.format(service_id),
True,
b'true',
ex=cache.TTL,
)

View File

@@ -29,7 +29,7 @@ def test_client_creates_job_data_correctly(mocker, fake_uuid):
mock_post.assert_called_once_with(url=expected_url, data=expected_data)
mock_redis_set.assert_called_once_with(
'has_jobs-{}'.format(service_id),
True,
b'true',
ex=604800,
)