Merge pull request #1514 from wenottingham/a-period-piece

Add some periods.
This commit is contained in:
Matthew Jones 2018-03-12 07:40:16 -07:00 committed by GitHub
commit 346c9fcc8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -3376,7 +3376,7 @@ class SystemJobSerializer(UnifiedJobSerializer):
except StdoutMaxBytesExceeded as e:
return _(
"Standard Output too large to display ({text_size} bytes), "
"only download supported for sizes over {supported_size} bytes").format(
"only download supported for sizes over {supported_size} bytes.").format(
text_size=e.total, supported_size=e.supported
)

View File

@ -4687,7 +4687,7 @@ class UnifiedJobStdout(RetrieveAPIView):
except StdoutMaxBytesExceeded as e:
response_message = _(
"Standard Output too large to display ({text_size} bytes), "
"only download supported for sizes over {supported_size} bytes").format(
"only download supported for sizes over {supported_size} bytes.").format(
text_size=e.total, supported_size=e.supported
)
if request.accepted_renderer.format == 'json':

View File

@ -169,7 +169,7 @@ def test_text_stdout_with_max_stdout(sqlite_copy_expert, get, admin):
response = get(url, user=admin, expect=200)
assert response.data['result_stdout'] == (
'Standard Output too large to display ({actual} bytes), only download '
'supported for sizes over {max} bytes'.format(
'supported for sizes over {max} bytes.'.format(
actual=total_bytes,
max=settings.STDOUT_MAX_BYTES_DISPLAY
)
@ -195,7 +195,7 @@ def test_max_bytes_display(sqlite_copy_expert, Parent, Child, relation, view, fm
response = get(url + '?format={}'.format(fmt), user=admin, expect=200)
assert response.content == (
'Standard Output too large to display ({actual} bytes), only download '
'supported for sizes over {max} bytes'.format(
'supported for sizes over {max} bytes.'.format(
actual=total_bytes,
max=settings.STDOUT_MAX_BYTES_DISPLAY
)
@ -243,7 +243,7 @@ def test_legacy_result_stdout_with_max_bytes(Cls, view, fmt, get, admin):
response = get(url + '?format={}'.format(fmt), user=admin, expect=200)
assert response.content == (
'Standard Output too large to display ({actual} bytes), only download '
'supported for sizes over {max} bytes'.format(
'supported for sizes over {max} bytes.'.format(
actual=total_bytes,
max=settings.STDOUT_MAX_BYTES_DISPLAY
)