code cleanup

This commit is contained in:
stvnrlly
2022-11-28 15:53:56 -05:00
parent ca135e32e8
commit e12e780a05
16 changed files with 26 additions and 145 deletions

View File

@@ -6,13 +6,6 @@ from freezegun import freeze_time
from tests.conftest import normalize_spaces
# E AssertionError: assert ('Performance data Messages sent since May 2016 1.8 billion total 1.1 billion '\n 'emails 987.7 million text messages 1.2 million letters Messages sent since '\n 'May 2016 Date Emails Text messages Letters 26 February 2021 1 2 3 25 '\n 'February 2021 1 2 3 24 February 2021 1 2 3 23 February 2021 1 2 3 22 '\n 'February 2021 1 2 3 21 February 2021 1 2 3 20 February 2021 1,234,567 '\n '123,456 123 Only showing the last 7 days Messages sent within 10 seconds '\n '98.31% on average Messages sent within 10 seconds Date Percentage 26 '\n 'February 2021 98.60% 25 February 2021 100.00% 24 February 2021 99.99% 23 '\n 'February 2021 100.00% 22 February 2021 95.00% 21 February 2021 95.30% 20 '\n 'February 2021 99.25% Only showing the last 7 days Organisations using Notify '\n 'There are 111 organisations and 9,999 services using Notify. Organisations '\n 'using Notify Organisation Number of live services Department of Examples and '\n 'Patterns 2 Department of One Service 1 No organisation 1') == ('Performance data Messages sent since May 2016 1.8 billion total 1.1 billion '\n 'emails 987.7 million text messages 1.2 million letters Messages sent since '\n 'May 2016 Date Emails Text messages Letters 27 February 2021 1 2 3 26 '\n 'February 2021 1 2 3 25 February 2021 1 2 3 24 February 2021 1 2 3 23 '\n 'February 2021 1 2 3 22 February 2021 1 2 3 21 February 2021 1,234,567 '\n '123,456 123 Only showing the last 7 days Messages sent within 10 seconds '\n '98.31% on average Messages sent within 10 seconds Date Percentage 27 '\n 'February 2021 98.60% 26 February 2021 100.00% 25 February 2021 99.99% 24 '\n 'February 2021 100.00% 23 February 2021 95.00% 22 February 2021 95.30% 21 '\n 'February 2021 99.25% Only showing the last 7 days Organisations using Notify '\n 'There are 111 organisations and 9,999 services using Notify. Organisations '\n 'using Notify Organisation Number of live services Department of Examples and '\n 'Patterns 2 Department of One Service 1 No organisation 1')
# E - Performance data Messages sent since May 2016 1.8 billion total 1.1 billion emails 987.7 million text messages 1.2 million letters Messages sent since May 2016 Date Emails Text messages Letters 27 February 2021 1 2 3 26 February 2021 1 2 3 25 February 2021 1 2 3 24 February 2021 1 2 3 23 February 2021 1 2 3 22 February 2021 1 2 3 21 February 2021 1,234,567 123,456 123 Only showing the last 7 days Messages sent within 10 seconds 98.31% on average Messages sent within 10 seconds Date Percentage 27 February 2021 98.60% 26 February 2021 100.00% 25 February 2021 99.99% 24 February 2021 100.00% 23 February 2021 95.00% 22 February 2021 95.30% 21 February 2021 99.25% Only showing the last 7 days Organisations using Notify There are 111 organisations and 9,999 services using Notify. Organisations using Notify Organisation Number of live services Department of Examples and Patterns 2 Department of One Service 1 No organisation 1
# E ? ----------------------- ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# E + Performance data Messages sent since May 2016 1.8 billion total 1.1 billion emails 987.7 million text messages 1.2 million letters Messages sent since May 2016 Date Emails Text messages Letters 26 February 2021 1 2 3 25 February 2021 1 2 3 24 February 2021 1 2 3 23 February 2021 1 2 3 22 February 2021 1 2 3 21 February 2021 1 2 3 20 February 2021 1,234,567 123,456 123 Only showing the last 7 days Messages sent within 10 seconds 98.31% on average Messages sent within 10 seconds Date Percentage 26 February 2021 98.60% 25 February 2021 100.00% 24 February 2021 99.99% 23 February 2021 100.00% 22 February 2021 95.00% 21 February 2021 95.30% 20 February 2021 99.25% Only showing the last 7 days Organisations using Notify There are 111 organisations and 9,999 services using Notify. Organisations using Notify Organisation Number of live services Department of Examples and Patterns 2 Department of One Service 1 No organisation 1
# E ? +++++++++++++++++++++++ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
def _get_example_performance_data():
return {