mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations
# Conflicts: # app/main/views/dashboard.py # app/templates/views/dashboard/dashboard.html # package-lock.json # package.json
This commit is contained in:
77
.github/pull_request_template.md
vendored
77
.github/pull_request_template.md
vendored
@@ -1,79 +1,22 @@
|
|||||||
<!--
|
<!--
|
||||||
Please follow the instructions found in this pull request template so that we
|
Not sure what you should include or write in a pull request? Please read the
|
||||||
have all of the relevant details needed for our work.
|
[pull request documentation in our docs!](https://github.com/GSA/notifications-api/blob/main/docs/all.md#pull-requests)
|
||||||
|
|
||||||
At the minimum, please be sure to fill in all sections found below and also do
|
|
||||||
the following:
|
|
||||||
|
|
||||||
- Provide an appropriate and descriptive title for the pull request
|
|
||||||
- Link the pull request to its corresponding issue (must be done after creating
|
|
||||||
the pull request itself)
|
|
||||||
- Assign yourself as the author
|
|
||||||
- Attach the appropriate labels to it
|
|
||||||
- Set it to be on the Notify.gov project board
|
|
||||||
- Select one or more reviewers from the team or mark the pull request as a draft
|
|
||||||
depending on its current state
|
|
||||||
- If the pull request is a draft, please be sure to add reviewers once it is
|
|
||||||
ready for review and mark it ready for review
|
|
||||||
|
|
||||||
For each section, please delete the instructions/sample text (that includes this
|
|
||||||
text, though it is wrapped in an HTML comment just in case) and put in your own
|
|
||||||
information. Thank you!
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
*A note to PR reviewers: it may be helpful to review our
|
*A note to PR reviewers: it may be helpful to review our [code review documentation](https://github.com/GSA/notifications-api/blob/main/docs/all.md#code-reviews) to know what to keep in mind while reviewing pull requests.*
|
||||||
[code review documentation](https://github.com/GSA/notifications-api/blob/main/docs/all.md#code-reviews)
|
|
||||||
to know what to keep in mind while reviewing pull requests.*
|
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
Please enter a clear description about your proposed changes and what the
|
Please enter a detailed description here.
|
||||||
expected outcome(s) is/are from there. If there are complex implementation
|
|
||||||
details within the changes, this is a great place to explain those details using
|
|
||||||
plain language.
|
|
||||||
|
|
||||||
This should include:
|
|
||||||
|
|
||||||
- Links to issues that this PR addresses
|
|
||||||
- Screenshots or screen captures of any visible changes, especially for UI work
|
|
||||||
- Dependency changes
|
|
||||||
|
|
||||||
If there are any caveats, known issues, follow-up items, etc., make a quick note
|
|
||||||
of them here as well, though more details are probably warranted in the issue
|
|
||||||
itself in this case.
|
|
||||||
|
|
||||||
## TODO (optional)
|
## TODO (optional)
|
||||||
|
|
||||||
If you're opening a draft PR, it might be helpful to list any outstanding work,
|
* [ ] TODO item 1
|
||||||
especially if you're asking folks to take a look before it's ready for full
|
* [ ] TODO item 2
|
||||||
review. In this case, create a small checklist with the outstanding items:
|
* [ ] TODO item ...
|
||||||
|
|
||||||
- [ ] TODO item 1
|
|
||||||
- [ ] TODO item 2
|
|
||||||
- [ ] TODO item ...
|
|
||||||
|
|
||||||
## Security Considerations
|
## Security Considerations
|
||||||
|
|
||||||
Please think about the security compliance aspect of your changes and what the
|
* Consideration 1
|
||||||
potential impacts might be.
|
* Consideration 2
|
||||||
|
* Consideration ...
|
||||||
**NOTE: Please be mindful of sharing sensitive information here! If you're not
|
|
||||||
sure of what to write, please ask the team first before writing anything here.**
|
|
||||||
|
|
||||||
Relevant details could include (and are not limited to) the following:
|
|
||||||
|
|
||||||
- Handling secrets/credential management (or specifically calling out that there
|
|
||||||
is nothing to handle)
|
|
||||||
- Any adjustments to the flow of data in and out the system, or even within it
|
|
||||||
- Connecting or disconnecting any external services to the application
|
|
||||||
- Handling of any sensitive information, such as PII
|
|
||||||
- Handling of information within log statements or other application monitoring
|
|
||||||
services/hooks
|
|
||||||
- The inclusion of a new external dependency or the removal of an existing one
|
|
||||||
- ... (anything else relevant from a security compliance perspective)
|
|
||||||
|
|
||||||
There are some cases where there are no security considerations to be had, e.g.,
|
|
||||||
updating our documentation with publicly available information. In those cases
|
|
||||||
it is fine to simply put something like this:
|
|
||||||
|
|
||||||
- None; this is a documentation update with publicly available information.
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ in front of them.
|
|||||||
|
|
||||||
This project is set up to work with
|
This project is set up to work with
|
||||||
[nvm (Node Version Manager)](https://github.com/nvm-sh/nvm#installing-and-updating)
|
[nvm (Node Version Manager)](https://github.com/nvm-sh/nvm#installing-and-updating)
|
||||||
for managing and using Node.js (version 16.15.1) and the `npm` package manager.
|
for managing and using Node.js (version 22.3.0) and the `npm` package manager.
|
||||||
|
|
||||||
These instructions will walk you through how to set your machine up with all of
|
These instructions will walk you through how to set your machine up with all of
|
||||||
the required tools for this project.
|
the required tools for this project.
|
||||||
|
|||||||
@@ -256,6 +256,12 @@
|
|||||||
handleDropdownChange({ target: { value: selectedValue } });
|
handleDropdownChange({ target: { value: selectedValue } });
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = { createChart, createTable, handleDropdownChange, fetchData };
|
// Exporting the functions for browser environment
|
||||||
|
window.myModule = {
|
||||||
|
createChart: l,
|
||||||
|
createTable: r,
|
||||||
|
handleDropdownChange: t,
|
||||||
|
fetchData: n
|
||||||
|
};
|
||||||
|
|
||||||
})(window);
|
})(window);
|
||||||
|
|||||||
@@ -30,13 +30,13 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var socket = io();
|
var socket = io();
|
||||||
var serviceId = ctx.getAttribute('data-service-id');
|
|
||||||
|
|
||||||
socket.on('connect', function() {
|
socket.on('connect', function() {
|
||||||
socket.emit('fetch_daily_stats', serviceId);
|
socket.emit('fetch_daily_stats_by_user');
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('daily_stats_update', function(data) {
|
socket.on('daily_stats_by_user_update', function(data) {
|
||||||
|
// console.log('Data received:', data);
|
||||||
var labels = [];
|
var labels = [];
|
||||||
var deliveredData = [];
|
var deliveredData = [];
|
||||||
var failedData = [];
|
var failedData = [];
|
||||||
@@ -53,13 +53,14 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on('error', function(data) {
|
socket.on('error', function(data) {
|
||||||
console.log('Error:', data);
|
// console.log('Error:', data);
|
||||||
});
|
});
|
||||||
|
|
||||||
var sevenDaysButton = document.getElementById('sevenDaysButton');
|
var sevenDaysButton = document.getElementById('sevenDaysButton');
|
||||||
if (sevenDaysButton) {
|
if (sevenDaysButton) {
|
||||||
sevenDaysButton.addEventListener('click', function() {
|
sevenDaysButton.addEventListener('click', function() {
|
||||||
socket.emit('fetch_daily_stats', serviceId);
|
socket.emit('fetch_daily_stats_by_user');
|
||||||
|
// console.log('clicked');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,6 +66,10 @@ h2.sms-message-header {
|
|||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.usa-prose >*+ h2.message-header {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
h2.recipient-list {
|
h2.recipient-list {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -972,7 +972,12 @@ def send_notification(service_id, template_id):
|
|||||||
# the csv filename and the job id. The user will give us the file name,
|
# the csv filename and the job id. The user will give us the file name,
|
||||||
# so we can search on that to obtain the job id, which we can use elsewhere
|
# so we can search on that to obtain the job id, which we can use elsewhere
|
||||||
# on the API side to find out what happens to the message.
|
# on the API side to find out what happens to the message.
|
||||||
current_app.logger.info(hilite(f"One-off file: {filename} job_id: {upload_id}"))
|
current_app.logger.info(
|
||||||
|
hilite(
|
||||||
|
f"One-off file: {filename} job_id: {upload_id} s3 location: service-{service_id}-notify/{upload_id}.csv"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
form = CsvUploadForm()
|
form = CsvUploadForm()
|
||||||
form.file.data = my_data
|
form.file.data = my_data
|
||||||
form.file.name = filename
|
form.file.name = filename
|
||||||
|
|||||||
@@ -195,10 +195,10 @@ def check_tour_notification(service_id, template_id):
|
|||||||
)
|
)
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"views/notifications/check.html",
|
"views/notifications/preview.html",
|
||||||
template=template,
|
template=template,
|
||||||
back_link=back_link,
|
back_link=back_link,
|
||||||
help="2",
|
help="3",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,8 @@
|
|||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<!-- <button id="sevenDaysButton">7 Days</button>
|
<!-- <button id="sevenDaysButton">7 Days</button>
|
||||||
<canvas id="myChart" data-service-id="{{ service_id }}"></canvas> -->
|
<canvas id="myChart"></canvas> -->
|
||||||
|
|
||||||
{{ ajax_block(partials, updates_url, 'inbox') }}
|
{{ ajax_block(partials, updates_url, 'inbox') }}
|
||||||
|
|
||||||
{{ ajax_block(partials, updates_url, 'totals') }}
|
{{ ajax_block(partials, updates_url, 'totals') }}
|
||||||
|
|||||||
@@ -5,11 +5,21 @@
|
|||||||
{% from "components/components/button/macro.njk" import usaButton %}
|
{% from "components/components/button/macro.njk" import usaButton %}
|
||||||
|
|
||||||
{% block service_page_title %}
|
{% block service_page_title %}
|
||||||
{{ "Error" if error else "Preview" }}
|
{% if error %}
|
||||||
|
{{ "Error" }}
|
||||||
|
{% elif help %}
|
||||||
|
{{ "Example text message" }}
|
||||||
|
{% else %}
|
||||||
|
{{ "Preview" }}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block backLink %}
|
{% block backLink %}
|
||||||
{{ usaBackLink({ "href": back_link_from_preview }) }}
|
{% if help %}
|
||||||
|
{{ usaBackLink({ "href": back_link }) }}
|
||||||
|
{% else %}
|
||||||
|
{{ usaBackLink({ "href": back_link_from_preview }) }}
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
@@ -40,16 +50,23 @@
|
|||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ page_header('Preview') }}
|
{{ page_header("Example text message" if help else "Preview") }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div>
|
|
||||||
<p class="sms-message-scheduler">Scheduled: {{ scheduled_for |format_datetime_scheduled_notification if scheduled_for else 'Now'}}</p>
|
|
||||||
<p class="sms-message-template">Template: {{template.name}}</p>
|
|
||||||
<p class="sms-message-sender" >From: {{ template.sender }}</p>
|
|
||||||
<p class="sms-message-sender" >To: {{ recipient }}</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 id="{{ file_contents_header_id }}">Message</h2>
|
{% if not help %}
|
||||||
|
<div>
|
||||||
|
<p class="sms-message-scheduler">Scheduled: {{ scheduled_for |format_datetime_scheduled_notification if scheduled_for else 'Now'}}</p>
|
||||||
|
<p class="sms-message-template">Template: {{template.name}}</p>
|
||||||
|
<p class="sms-message-sender" >From: {{ template.sender }}</p>
|
||||||
|
<p class="sms-message-sender" >To: {{ recipient }}</p>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if not help %}
|
||||||
|
<h2 class="message-header">Message</h2>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<div class="preview-message"> {{ template|string }}</div>
|
<div class="preview-message"> {{ template|string }}</div>
|
||||||
|
|
||||||
<div class="js-stick-at-bottom-when-scrolling">
|
<div class="js-stick-at-bottom-when-scrolling">
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ plugins.addSrc = require('gulp-add-src');
|
|||||||
plugins.babel = require('gulp-babel');
|
plugins.babel = require('gulp-babel');
|
||||||
plugins.cleanCSS = require('gulp-clean-css');
|
plugins.cleanCSS = require('gulp-clean-css');
|
||||||
plugins.concat = require('gulp-concat');
|
plugins.concat = require('gulp-concat');
|
||||||
plugins.cssUrlAdjuster = require('gulp-css-url-adjuster');
|
|
||||||
plugins.jshint = require('gulp-jshint');
|
plugins.jshint = require('gulp-jshint');
|
||||||
plugins.prettyerror = require('gulp-prettyerror');
|
plugins.prettyerror = require('gulp-prettyerror');
|
||||||
plugins.rollup = require('gulp-better-rollup')
|
plugins.rollup = require('gulp-better-rollup')
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
|
import multiprocessing
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import multiprocessing
|
|
||||||
import gunicorn
|
import gunicorn
|
||||||
|
|
||||||
# Let gunicorn figure out the right number of workers
|
# Let gunicorn figure out the right number of workers
|
||||||
|
|||||||
18
package.json
18
package.json
@@ -25,27 +25,26 @@
|
|||||||
"graceful-fs": "^4.2.11"
|
"graceful-fs": "^4.2.11"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@uswds/uswds": "^3.4.1",
|
"@uswds/uswds": "^3.8.1",
|
||||||
"cbor-js": "0.1.0",
|
"cbor-js": "0.1.0",
|
||||||
"chart.js": "^4.4.2",
|
"chart.js": "^4.4.3",
|
||||||
"d3": "^7.9.0",
|
"d3": "^7.9.0",
|
||||||
"govuk_frontend_toolkit": "8.1.0",
|
"govuk_frontend_toolkit": "8.1.0",
|
||||||
"govuk-frontend": "2.13.0",
|
"govuk-frontend": "2.13.0",
|
||||||
"hogan": "1.0.2",
|
"hogan": "1.0.2",
|
||||||
"jquery": "3.7.1",
|
"jquery": "3.7.1",
|
||||||
"morphdom": "2.6.1",
|
"morphdom": "2.7.2",
|
||||||
"python": "^0.0.4",
|
"python": "^0.0.4",
|
||||||
"query-command-supported": "1.0.0",
|
"query-command-supported": "1.0.0",
|
||||||
"sass-embedded": "^1.69.5",
|
"sass-embedded": "^1.77.5",
|
||||||
"socket.io-client": "^4.2.0",
|
"socket.io-client": "^4.2.0",
|
||||||
"textarea-caret": "3.1.0",
|
"textarea-caret": "3.1.0",
|
||||||
"timeago": "1.6.7"
|
"timeago": "1.6.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.24.7",
|
"@babel/core": "7.24.7",
|
||||||
"@babel/preset-env": "^7.24.7",
|
"@babel/preset-env": "7.24.7",
|
||||||
"@uswds/compile": "^1.1.0",
|
"@uswds/compile": "^1.1.0",
|
||||||
"babel-jest": "^29.7.0",
|
|
||||||
"better-npm-audit": "^3.7.3",
|
"better-npm-audit": "^3.7.3",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-add-src": "^1.0.0",
|
"gulp-add-src": "^1.0.0",
|
||||||
@@ -53,15 +52,14 @@
|
|||||||
"gulp-better-rollup": "4.0.1",
|
"gulp-better-rollup": "4.0.1",
|
||||||
"gulp-clean-css": "4.3.0",
|
"gulp-clean-css": "4.3.0",
|
||||||
"gulp-concat": "2.6.1",
|
"gulp-concat": "2.6.1",
|
||||||
"gulp-css-url-adjuster": "0.2.3",
|
|
||||||
"gulp-include": "2.4.1",
|
"gulp-include": "2.4.1",
|
||||||
"gulp-jshint": "2.1.0",
|
"gulp-jshint": "2.1.0",
|
||||||
"gulp-prettyerror": "2.0.0",
|
"gulp-prettyerror": "2.0.0",
|
||||||
"gulp-uglify": "3.0.2",
|
"gulp-uglify": "3.0.2",
|
||||||
"jest": "^29.7.0",
|
"jest": "29.7.0",
|
||||||
"jest-each": "^29.2.1",
|
"jest-each": "^29.2.1",
|
||||||
"jest-environment-jsdom": "^29.2.2",
|
"jest-environment-jsdom": "^29.2.2",
|
||||||
"jshint": "2.13.5",
|
"jshint": "2.13.6",
|
||||||
"jshint-stylish": "2.2.1",
|
"jshint-stylish": "2.2.1",
|
||||||
"rollup": "1.32.1",
|
"rollup": "1.32.1",
|
||||||
"rollup-plugin-commonjs": "10.1.0",
|
"rollup-plugin-commonjs": "10.1.0",
|
||||||
|
|||||||
190
poetry.lock
generated
190
poetry.lock
generated
@@ -182,17 +182,17 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "boto3"
|
name = "boto3"
|
||||||
version = "1.34.128"
|
version = "1.34.138"
|
||||||
description = "The AWS SDK for Python"
|
description = "The AWS SDK for Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "boto3-1.34.128-py3-none-any.whl", hash = "sha256:a048ff980a81cd652724a73bc496c519b336fabe19cc8bfc6c53b2ff6eb22c7b"},
|
{file = "boto3-1.34.138-py3-none-any.whl", hash = "sha256:81518aa95fad71279411fb5c94da4b4a554a5d53fc876faca62b7b5c8737f1cb"},
|
||||||
{file = "boto3-1.34.128.tar.gz", hash = "sha256:43a6e99f53a8d34b3b4dbe424dbcc6b894350dc41a85b0af7c7bc24a7ec2cead"},
|
{file = "boto3-1.34.138.tar.gz", hash = "sha256:f79c15e33eb7706f197d98d828b193cf0891966682ad3ec5e900f6f9e7362e35"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
botocore = ">=1.34.128,<1.35.0"
|
botocore = ">=1.34.138,<1.35.0"
|
||||||
jmespath = ">=0.7.1,<2.0.0"
|
jmespath = ">=0.7.1,<2.0.0"
|
||||||
s3transfer = ">=0.10.0,<0.11.0"
|
s3transfer = ">=0.10.0,<0.11.0"
|
||||||
|
|
||||||
@@ -201,13 +201,13 @@ crt = ["botocore[crt] (>=1.21.0,<2.0a0)"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "botocore"
|
name = "botocore"
|
||||||
version = "1.34.128"
|
version = "1.34.138"
|
||||||
description = "Low-level, data-driven core of boto 3."
|
description = "Low-level, data-driven core of boto 3."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "botocore-1.34.128-py3-none-any.whl", hash = "sha256:db67fda136c372ab3fa432580c819c89ba18d28a6152a4d2a7ea40d44082892e"},
|
{file = "botocore-1.34.138-py3-none-any.whl", hash = "sha256:84e96a954c39a6f09cae4ea95b2ae582b5ae01b5040c92507b60509c9be5377a"},
|
||||||
{file = "botocore-1.34.128.tar.gz", hash = "sha256:8d8e03f7c8c080ecafda72036eb3b482d649f8417c90b5dca33b7c2c47adb0c9"},
|
{file = "botocore-1.34.138.tar.gz", hash = "sha256:f558bbea96c4a4abbaeeedc477dabb00902311ba1ca6327974a6819b9f384920"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -473,63 +473,63 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "coverage"
|
name = "coverage"
|
||||||
version = "7.5.3"
|
version = "7.5.4"
|
||||||
description = "Code coverage measurement for Python"
|
description = "Code coverage measurement for Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "coverage-7.5.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:a6519d917abb15e12380406d721e37613e2a67d166f9fb7e5a8ce0375744cd45"},
|
{file = "coverage-7.5.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6cfb5a4f556bb51aba274588200a46e4dd6b505fb1a5f8c5ae408222eb416f99"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:aea7da970f1feccf48be7335f8b2ca64baf9b589d79e05b9397a06696ce1a1ec"},
|
{file = "coverage-7.5.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2174e7c23e0a454ffe12267a10732c273243b4f2d50d07544a91198f05c48f47"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:923b7b1c717bd0f0f92d862d1ff51d9b2b55dbbd133e05680204465f454bb286"},
|
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2214ee920787d85db1b6a0bd9da5f8503ccc8fcd5814d90796c2f2493a2f4d2e"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62bda40da1e68898186f274f832ef3e759ce929da9a9fd9fcf265956de269dbc"},
|
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1137f46adb28e3813dec8c01fefadcb8c614f33576f672962e323b5128d9a68d"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d8b7339180d00de83e930358223c617cc343dd08e1aa5ec7b06c3a121aec4e1d"},
|
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b385d49609f8e9efc885790a5a0e89f2e3ae042cdf12958b6034cc442de428d3"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:25a5caf742c6195e08002d3b6c2dd6947e50efc5fc2c2205f61ecb47592d2d83"},
|
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b4a474f799456e0eb46d78ab07303286a84a3140e9700b9e154cfebc8f527016"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:05ac5f60faa0c704c0f7e6a5cbfd6f02101ed05e0aee4d2822637a9e672c998d"},
|
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:5cd64adedf3be66f8ccee418473c2916492d53cbafbfcff851cbec5a8454b136"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:239a4e75e09c2b12ea478d28815acf83334d32e722e7433471fbf641c606344c"},
|
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e564c2cf45d2f44a9da56f4e3a26b2236504a496eb4cb0ca7221cd4cc7a9aca9"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-win32.whl", hash = "sha256:a5812840d1d00eafae6585aba38021f90a705a25b8216ec7f66aebe5b619fb84"},
|
{file = "coverage-7.5.4-cp310-cp310-win32.whl", hash = "sha256:7076b4b3a5f6d2b5d7f1185fde25b1e54eb66e647a1dfef0e2c2bfaf9b4c88c8"},
|
||||||
{file = "coverage-7.5.3-cp310-cp310-win_amd64.whl", hash = "sha256:33ca90a0eb29225f195e30684ba4a6db05dbef03c2ccd50b9077714c48153cac"},
|
{file = "coverage-7.5.4-cp310-cp310-win_amd64.whl", hash = "sha256:018a12985185038a5b2bcafab04ab833a9a0f2c59995b3cec07e10074c78635f"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f81bc26d609bf0fbc622c7122ba6307993c83c795d2d6f6f6fd8c000a770d974"},
|
{file = "coverage-7.5.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:db14f552ac38f10758ad14dd7b983dbab424e731588d300c7db25b6f89e335b5"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7cec2af81f9e7569280822be68bd57e51b86d42e59ea30d10ebdbb22d2cb7232"},
|
{file = "coverage-7.5.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3257fdd8e574805f27bb5342b77bc65578e98cbc004a92232106344053f319ba"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:55f689f846661e3f26efa535071775d0483388a1ccfab899df72924805e9e7cd"},
|
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a6612c99081d8d6134005b1354191e103ec9705d7ba2754e848211ac8cacc6b"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:50084d3516aa263791198913a17354bd1dc627d3c1639209640b9cac3fef5807"},
|
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d45d3cbd94159c468b9b8c5a556e3f6b81a8d1af2a92b77320e887c3e7a5d080"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:341dd8f61c26337c37988345ca5c8ccabeff33093a26953a1ac72e7d0103c4fb"},
|
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed550e7442f278af76d9d65af48069f1fb84c9f745ae249c1a183c1e9d1b025c"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ab0b028165eea880af12f66086694768f2c3139b2c31ad5e032c8edbafca6ffc"},
|
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7a892be37ca35eb5019ec85402c3371b0f7cda5ab5056023a7f13da0961e60da"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:5bc5a8c87714b0c67cfeb4c7caa82b2d71e8864d1a46aa990b5588fa953673b8"},
|
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8192794d120167e2a64721d88dbd688584675e86e15d0569599257566dec9bf0"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:38a3b98dae8a7c9057bd91fbf3415c05e700a5114c5f1b5b0ea5f8f429ba6614"},
|
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:820bc841faa502e727a48311948e0461132a9c8baa42f6b2b84a29ced24cc078"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-win32.whl", hash = "sha256:fcf7d1d6f5da887ca04302db8e0e0cf56ce9a5e05f202720e49b3e8157ddb9a9"},
|
{file = "coverage-7.5.4-cp311-cp311-win32.whl", hash = "sha256:6aae5cce399a0f065da65c7bb1e8abd5c7a3043da9dceb429ebe1b289bc07806"},
|
||||||
{file = "coverage-7.5.3-cp311-cp311-win_amd64.whl", hash = "sha256:8c836309931839cca658a78a888dab9676b5c988d0dd34ca247f5f3e679f4e7a"},
|
{file = "coverage-7.5.4-cp311-cp311-win_amd64.whl", hash = "sha256:d2e344d6adc8ef81c5a233d3a57b3c7d5181f40e79e05e1c143da143ccb6377d"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:296a7d9bbc598e8744c00f7a6cecf1da9b30ae9ad51c566291ff1314e6cbbed8"},
|
{file = "coverage-7.5.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:54317c2b806354cbb2dc7ac27e2b93f97096912cc16b18289c5d4e44fc663233"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:34d6d21d8795a97b14d503dcaf74226ae51eb1f2bd41015d3ef332a24d0a17b3"},
|
{file = "coverage-7.5.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:042183de01f8b6d531e10c197f7f0315a61e8d805ab29c5f7b51a01d62782747"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e317953bb4c074c06c798a11dbdd2cf9979dbcaa8ccc0fa4701d80042d4ebf1"},
|
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a6bb74ed465d5fb204b2ec41d79bcd28afccf817de721e8a807d5141c3426638"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:705f3d7c2b098c40f5b81790a5fedb274113373d4d1a69e65f8b68b0cc26f6db"},
|
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3d45ff86efb129c599a3b287ae2e44c1e281ae0f9a9bad0edc202179bcc3a2e"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1196e13c45e327d6cd0b6e471530a1882f1017eb83c6229fc613cd1a11b53cd"},
|
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5013ed890dc917cef2c9f765c4c6a8ae9df983cd60dbb635df8ed9f4ebc9f555"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:015eddc5ccd5364dcb902eaecf9515636806fa1e0d5bef5769d06d0f31b54523"},
|
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1014fbf665fef86cdfd6cb5b7371496ce35e4d2a00cda501cf9f5b9e6fced69f"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:fd27d8b49e574e50caa65196d908f80e4dff64d7e592d0c59788b45aad7e8b35"},
|
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3684bc2ff328f935981847082ba4fdc950d58906a40eafa93510d1b54c08a66c"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:33fc65740267222fc02975c061eb7167185fef4cc8f2770267ee8bf7d6a42f84"},
|
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:581ea96f92bf71a5ec0974001f900db495488434a6928a2ca7f01eee20c23805"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-win32.whl", hash = "sha256:7b2a19e13dfb5c8e145c7a6ea959485ee8e2204699903c88c7d25283584bfc08"},
|
{file = "coverage-7.5.4-cp312-cp312-win32.whl", hash = "sha256:73ca8fbc5bc622e54627314c1a6f1dfdd8db69788f3443e752c215f29fa87a0b"},
|
||||||
{file = "coverage-7.5.3-cp312-cp312-win_amd64.whl", hash = "sha256:0bbddc54bbacfc09b3edaec644d4ac90c08ee8ed4844b0f86227dcda2d428fcb"},
|
{file = "coverage-7.5.4-cp312-cp312-win_amd64.whl", hash = "sha256:cef4649ec906ea7ea5e9e796e68b987f83fa9a718514fe147f538cfeda76d7a7"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:f78300789a708ac1f17e134593f577407d52d0417305435b134805c4fb135adb"},
|
{file = "coverage-7.5.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:cdd31315fc20868c194130de9ee6bfd99755cc9565edff98ecc12585b90be882"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:b368e1aee1b9b75757942d44d7598dcd22a9dbb126affcbba82d15917f0cc155"},
|
{file = "coverage-7.5.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:02ff6e898197cc1e9fa375581382b72498eb2e6d5fc0b53f03e496cfee3fac6d"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f836c174c3a7f639bded48ec913f348c4761cbf49de4a20a956d3431a7c9cb24"},
|
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d05c16cf4b4c2fc880cb12ba4c9b526e9e5d5bb1d81313d4d732a5b9fe2b9d53"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:244f509f126dc71369393ce5fea17c0592c40ee44e607b6d855e9c4ac57aac98"},
|
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c5986ee7ea0795a4095ac4d113cbb3448601efca7f158ec7f7087a6c705304e4"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c4c2872b3c91f9baa836147ca33650dc5c172e9273c808c3c3199c75490e709d"},
|
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5df54843b88901fdc2f598ac06737f03d71168fd1175728054c8f5a2739ac3e4"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:dd4b3355b01273a56b20c219e74e7549e14370b31a4ffe42706a8cda91f19f6d"},
|
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:ab73b35e8d109bffbda9a3e91c64e29fe26e03e49addf5b43d85fc426dde11f9"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:f542287b1489c7a860d43a7d8883e27ca62ab84ca53c965d11dac1d3a1fab7ce"},
|
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:aea072a941b033813f5e4814541fc265a5c12ed9720daef11ca516aeacd3bd7f"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:75e3f4e86804023e991096b29e147e635f5e2568f77883a1e6eed74512659ab0"},
|
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:16852febd96acd953b0d55fc842ce2dac1710f26729b31c80b940b9afcd9896f"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-win32.whl", hash = "sha256:c59d2ad092dc0551d9f79d9d44d005c945ba95832a6798f98f9216ede3d5f485"},
|
{file = "coverage-7.5.4-cp38-cp38-win32.whl", hash = "sha256:8f894208794b164e6bd4bba61fc98bf6b06be4d390cf2daacfa6eca0a6d2bb4f"},
|
||||||
{file = "coverage-7.5.3-cp38-cp38-win_amd64.whl", hash = "sha256:fa21a04112c59ad54f69d80e376f7f9d0f5f9123ab87ecd18fbb9ec3a2beed56"},
|
{file = "coverage-7.5.4-cp38-cp38-win_amd64.whl", hash = "sha256:e2afe743289273209c992075a5a4913e8d007d569a406ffed0bd080ea02b0633"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f5102a92855d518b0996eb197772f5ac2a527c0ec617124ad5242a3af5e25f85"},
|
{file = "coverage-7.5.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b95c3a8cb0463ba9f77383d0fa8c9194cf91f64445a63fc26fb2327e1e1eb088"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d1da0a2e3b37b745a2b2a678a4c796462cf753aebf94edcc87dcc6b8641eae31"},
|
{file = "coverage-7.5.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3d7564cc09dd91b5a6001754a5b3c6ecc4aba6323baf33a12bd751036c998be4"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8383a6c8cefba1b7cecc0149415046b6fc38836295bc4c84e820872eb5478b3d"},
|
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:44da56a2589b684813f86d07597fdf8a9c6ce77f58976727329272f5a01f99f7"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9aad68c3f2566dfae84bf46295a79e79d904e1c21ccfc66de88cd446f8686341"},
|
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e16f3d6b491c48c5ae726308e6ab1e18ee830b4cdd6913f2d7f77354b33f91c8"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e079c9ec772fedbade9d7ebc36202a1d9ef7291bc9b3a024ca395c4d52853d7"},
|
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dbc5958cb471e5a5af41b0ddaea96a37e74ed289535e8deca404811f6cb0bc3d"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:bde997cac85fcac227b27d4fb2c7608a2c5f6558469b0eb704c5726ae49e1c52"},
|
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:a04e990a2a41740b02d6182b498ee9796cf60eefe40cf859b016650147908029"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:990fb20b32990b2ce2c5f974c3e738c9358b2735bc05075d50a6f36721b8f303"},
|
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:ddbd2f9713a79e8e7242d7c51f1929611e991d855f414ca9996c20e44a895f7c"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:3d5a67f0da401e105753d474369ab034c7bae51a4c31c77d94030d59e41df5bd"},
|
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:b1ccf5e728ccf83acd313c89f07c22d70d6c375a9c6f339233dcf792094bcbf7"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-win32.whl", hash = "sha256:e08c470c2eb01977d221fd87495b44867a56d4d594f43739a8028f8646a51e0d"},
|
{file = "coverage-7.5.4-cp39-cp39-win32.whl", hash = "sha256:56b4eafa21c6c175b3ede004ca12c653a88b6f922494b023aeb1e836df953ace"},
|
||||||
{file = "coverage-7.5.3-cp39-cp39-win_amd64.whl", hash = "sha256:1d2a830ade66d3563bb61d1e3c77c8def97b30ed91e166c67d0632c018f380f0"},
|
{file = "coverage-7.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:65e528e2e921ba8fd67d9055e6b9f9e34b21ebd6768ae1c1723f4ea6ace1234d"},
|
||||||
{file = "coverage-7.5.3-pp38.pp39.pp310-none-any.whl", hash = "sha256:3538d8fb1ee9bdd2e2692b3b18c22bb1c19ffbefd06880f5ac496e42d7bb3884"},
|
{file = "coverage-7.5.4-pp38.pp39.pp310-none-any.whl", hash = "sha256:79b356f3dd5b26f3ad23b35c75dbdaf1f9e2450b6bcefc6d0825ea0aa3f86ca5"},
|
||||||
{file = "coverage-7.5.3.tar.gz", hash = "sha256:04aefca5190d1dc7a53a4c1a5a7f8568811306d7a8ee231c42fb69215571944f"},
|
{file = "coverage-7.5.4.tar.gz", hash = "sha256:a44963520b069e12789d0faea4e9fdb1e410cdc4aab89d94f7f55cbb7fef0353"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
@@ -741,34 +741,34 @@ testing = ["hatch", "pre-commit", "pytest", "tox"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "filelock"
|
name = "filelock"
|
||||||
version = "3.15.1"
|
version = "3.15.4"
|
||||||
description = "A platform independent file lock."
|
description = "A platform independent file lock."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "filelock-3.15.1-py3-none-any.whl", hash = "sha256:71b3102950e91dfc1bb4209b64be4dc8854f40e5f534428d8684f953ac847fac"},
|
{file = "filelock-3.15.4-py3-none-any.whl", hash = "sha256:6ca1fffae96225dab4c6eaf1c4f4f28cd2568d3ec2a44e15a08520504de468e7"},
|
||||||
{file = "filelock-3.15.1.tar.gz", hash = "sha256:58a2549afdf9e02e10720eaa4d4470f56386d7a6f72edd7d0596337af8ed7ad8"},
|
{file = "filelock-3.15.4.tar.gz", hash = "sha256:2207938cbc1844345cb01a5a95524dae30f0ce089eba5b00378295a17e3e90cb"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"]
|
docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"]
|
||||||
testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8.0.1)", "pytest (>=7.4.3)", "pytest-asyncio (>=0.21)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)"]
|
testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8.0.1)", "pytest (>=7.4.3)", "pytest-asyncio (>=0.21)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)", "virtualenv (>=20.26.2)"]
|
||||||
typing = ["typing-extensions (>=4.8)"]
|
typing = ["typing-extensions (>=4.8)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "flake8"
|
name = "flake8"
|
||||||
version = "7.0.0"
|
version = "7.1.0"
|
||||||
description = "the modular source code checker: pep8 pyflakes and co"
|
description = "the modular source code checker: pep8 pyflakes and co"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8.1"
|
python-versions = ">=3.8.1"
|
||||||
files = [
|
files = [
|
||||||
{file = "flake8-7.0.0-py2.py3-none-any.whl", hash = "sha256:a6dfbb75e03252917f2473ea9653f7cd799c3064e54d4c8140044c5c065f53c3"},
|
{file = "flake8-7.1.0-py2.py3-none-any.whl", hash = "sha256:2e416edcc62471a64cea09353f4e7bdba32aeb079b6e360554c659a122b1bc6a"},
|
||||||
{file = "flake8-7.0.0.tar.gz", hash = "sha256:33f96621059e65eec474169085dc92bf26e7b2d47366b70be2f67ab80dc25132"},
|
{file = "flake8-7.1.0.tar.gz", hash = "sha256:48a07b626b55236e0fb4784ee69a465fbf59d79eec1f5b4785c3d3bc57d17aa5"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
mccabe = ">=0.7.0,<0.8.0"
|
mccabe = ">=0.7.0,<0.8.0"
|
||||||
pycodestyle = ">=2.11.0,<2.12.0"
|
pycodestyle = ">=2.12.0,<2.13.0"
|
||||||
pyflakes = ">=3.2.0,<3.3.0"
|
pyflakes = ">=3.2.0,<3.3.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1581,13 +1581,13 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "moto"
|
name = "moto"
|
||||||
version = "5.0.9"
|
version = "5.0.10"
|
||||||
description = ""
|
description = ""
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "moto-5.0.9-py2.py3-none-any.whl", hash = "sha256:21a13e02f83d6a18cfcd99949c96abb2e889f4bd51c4c6a3ecc8b78765cb854e"},
|
{file = "moto-5.0.10-py2.py3-none-any.whl", hash = "sha256:9ffae2f64cc8fe95b9a12d63ae7268a7d6bea9993b922905b5abd8197d852cd0"},
|
||||||
{file = "moto-5.0.9.tar.gz", hash = "sha256:eb71f1cba01c70fff1f16086acb24d6d9aeb32830d646d8989f98a29aeae24ba"},
|
{file = "moto-5.0.10.tar.gz", hash = "sha256:eff37363221c93ea44f95721ae0ddb56f977fe70437a041b6cc641ee90266279"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -1891,24 +1891,24 @@ files = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "phonenumbers"
|
name = "phonenumbers"
|
||||||
version = "8.13.39"
|
version = "8.13.40"
|
||||||
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers."
|
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = "*"
|
python-versions = "*"
|
||||||
files = [
|
files = [
|
||||||
{file = "phonenumbers-8.13.39-py2.py3-none-any.whl", hash = "sha256:3ad2d086fa71e7eef409001b9195ac54bebb0c6e3e752209b558ca192c9229a0"},
|
{file = "phonenumbers-8.13.40-py2.py3-none-any.whl", hash = "sha256:9582752c20a1da5ec4449f7f97542bf8a793c8e2fec0ab57f767177bb8fc0b1d"},
|
||||||
{file = "phonenumbers-8.13.39.tar.gz", hash = "sha256:db7ca4970d206b2056231105300753b1a5b229f43416f8c2b3010e63fbb68d77"},
|
{file = "phonenumbers-8.13.40.tar.gz", hash = "sha256:f137c2848b8e83dd064b71881b65680584417efa202177fd330e2f7ff6c68113"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pip"
|
name = "pip"
|
||||||
version = "24.0"
|
version = "24.1.1"
|
||||||
description = "The PyPA recommended tool for installing Python packages."
|
description = "The PyPA recommended tool for installing Python packages."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pip-24.0-py3-none-any.whl", hash = "sha256:ba0d021a166865d2265246961bec0152ff124de910c5cc39f1156ce3fa7c69dc"},
|
{file = "pip-24.1.1-py3-none-any.whl", hash = "sha256:efca15145a95e95c00608afeab66311d40bfb73bb2266a855befd705e6bb15a0"},
|
||||||
{file = "pip-24.0.tar.gz", hash = "sha256:ea9bd1a847e8c5774a5777bb398c19e80bcd4e2aa16a4b301b718fe6f593aba2"},
|
{file = "pip-24.1.1.tar.gz", hash = "sha256:5aa64f65e1952733ee0a9a9b1f52496ebdb3f3077cc46f80a16d983b58d1180a"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -2057,13 +2057,13 @@ defusedxml = ">=0.7.1,<0.8.0"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pycodestyle"
|
name = "pycodestyle"
|
||||||
version = "2.11.1"
|
version = "2.12.0"
|
||||||
description = "Python style guide checker"
|
description = "Python style guide checker"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "pycodestyle-2.11.1-py2.py3-none-any.whl", hash = "sha256:44fe31000b2d866f2e41841b18528a505fbd7fef9017b04eff4e2648a0fadc67"},
|
{file = "pycodestyle-2.12.0-py2.py3-none-any.whl", hash = "sha256:949a39f6b86c3e1515ba1787c2022131d165a8ad271b11370a8819aa070269e4"},
|
||||||
{file = "pycodestyle-2.11.1.tar.gz", hash = "sha256:41ba0e7afc9752dfb53ced5489e89f8186be00e599e712660695b7a75ff2663f"},
|
{file = "pycodestyle-2.12.0.tar.gz", hash = "sha256:442f950141b4f43df752dd303511ffded3a04c2b6fb7f65980574f0c31e6e79c"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -2477,13 +2477,13 @@ unidecode = ["Unidecode (>=1.1.1)"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "python-socketio"
|
name = "python-socketio"
|
||||||
version = "5.11.2"
|
version = "5.11.3"
|
||||||
description = "Socket.IO server and client for Python"
|
description = "Socket.IO server and client for Python"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "python-socketio-5.11.2.tar.gz", hash = "sha256:ae6a1de5c5209ca859dc574dccc8931c4be17ee003e74ce3b8d1306162bb4a37"},
|
{file = "python_socketio-5.11.3-py3-none-any.whl", hash = "sha256:2a923a831ff70664b7c502df093c423eb6aa93c1ce68b8319e840227a26d8b69"},
|
||||||
{file = "python_socketio-5.11.2-py3-none-any.whl", hash = "sha256:b9f22a8ff762d7a6e123d16a43ddb1a27d50f07c3c88ea999334f2f89b0ad52b"},
|
{file = "python_socketio-5.11.3.tar.gz", hash = "sha256:194af8cdbb7b0768c2e807ba76c7abc288eb5bb85559b7cddee51a6bc7a65737"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -2586,13 +2586,13 @@ toml = ["tomli (>=2.0.1)"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "redis"
|
name = "redis"
|
||||||
version = "5.0.6"
|
version = "5.0.7"
|
||||||
description = "Python client for Redis database and key-value store"
|
description = "Python client for Redis database and key-value store"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
files = [
|
files = [
|
||||||
{file = "redis-5.0.6-py3-none-any.whl", hash = "sha256:c0d6d990850c627bbf7be01c5c4cbaadf67b48593e913bb71c9819c30df37eee"},
|
{file = "redis-5.0.7-py3-none-any.whl", hash = "sha256:0e479e24da960c690be5d9b96d21f7b918a98c0cf49af3b6fafaa0753f93a0db"},
|
||||||
{file = "redis-5.0.6.tar.gz", hash = "sha256:38473cd7c6389ad3e44a91f4c3eaf6bcb8a9f746007f29bf4fb20824ff0b2197"},
|
{file = "redis-5.0.7.tar.gz", hash = "sha256:8f611490b93c8109b50adc317b31bfd84fff31def3475b92e7e80bf39f48175b"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.extras]
|
[package.extras]
|
||||||
@@ -2778,13 +2778,13 @@ diagram = ["matplotlib (>=3.0.0)", "pydot (>=1.3.0)", "tqdm (>=v4.31.0)"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "s3transfer"
|
name = "s3transfer"
|
||||||
version = "0.10.1"
|
version = "0.10.2"
|
||||||
description = "An Amazon S3 Transfer Manager"
|
description = "An Amazon S3 Transfer Manager"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">= 3.8"
|
python-versions = ">=3.8"
|
||||||
files = [
|
files = [
|
||||||
{file = "s3transfer-0.10.1-py3-none-any.whl", hash = "sha256:ceb252b11bcf87080fb7850a224fb6e05c8a776bab8f2b64b7f25b969464839d"},
|
{file = "s3transfer-0.10.2-py3-none-any.whl", hash = "sha256:eca1c20de70a39daee580aef4986996620f365c4e0fda6a86100231d62f1bf69"},
|
||||||
{file = "s3transfer-0.10.1.tar.gz", hash = "sha256:5683916b4c724f799e600f41dd9e10a9ff19871bf87623cc8f491cb4f5fa0a19"},
|
{file = "s3transfer-0.10.2.tar.gz", hash = "sha256:0711534e9356d3cc692fdde846b4a1e4b0cb6519971860796e6bc4c7aea00ef6"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -2987,13 +2987,13 @@ zstd = ["zstandard (>=0.18.0)"]
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "virtualenv"
|
name = "virtualenv"
|
||||||
version = "20.26.2"
|
version = "20.26.3"
|
||||||
description = "Virtual Python Environment builder"
|
description = "Virtual Python Environment builder"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=3.7"
|
||||||
files = [
|
files = [
|
||||||
{file = "virtualenv-20.26.2-py3-none-any.whl", hash = "sha256:a624db5e94f01ad993d476b9ee5346fdf7b9de43ccaee0e0197012dc838a0e9b"},
|
{file = "virtualenv-20.26.3-py3-none-any.whl", hash = "sha256:8cc4a31139e796e9a7de2cd5cf2489de1217193116a8fd42328f1bd65f434589"},
|
||||||
{file = "virtualenv-20.26.2.tar.gz", hash = "sha256:82bf0f4eebbb78d36ddaee0283d43fe5736b53880b8a8cdcd37390a07ac3741c"},
|
{file = "virtualenv-20.26.3.tar.gz", hash = "sha256:4c43a2a236279d9ea36a0d76f98d84bd6ca94ac4e0f4a3b9d46d05e10fea542a"},
|
||||||
]
|
]
|
||||||
|
|
||||||
[package.dependencies]
|
[package.dependencies]
|
||||||
@@ -3116,4 +3116,4 @@ files = [
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = "^3.12.2"
|
python-versions = "^3.12.2"
|
||||||
content-hash = "b45f2c38493f81bd7fc9d4bfd294b001d71e4082380eb0851d4f3ea8dcdb949c"
|
content-hash = "8ad87349d57d4ff720e720067412e2656326c089ae21d51f6d96215f9546602e"
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ wtforms = "~=3.1"
|
|||||||
markdown = "^3.5.2"
|
markdown = "^3.5.2"
|
||||||
async-timeout = "^4.0.3"
|
async-timeout = "^4.0.3"
|
||||||
bleach = "^6.1.0"
|
bleach = "^6.1.0"
|
||||||
boto3 = "^1.34.128"
|
boto3 = "^1.34.138"
|
||||||
botocore = "^1.34.128"
|
botocore = "^1.34.138"
|
||||||
cachetools = "^5.3.3"
|
cachetools = "^5.3.3"
|
||||||
cffi = "^1.16.0"
|
cffi = "^1.16.0"
|
||||||
cryptography = "^42.0.8"
|
cryptography = "^42.0.8"
|
||||||
@@ -50,12 +50,12 @@ jmespath = "^1.0.1"
|
|||||||
mistune = "0.8.4"
|
mistune = "0.8.4"
|
||||||
numpy = "^1.26.4"
|
numpy = "^1.26.4"
|
||||||
ordered-set = "^4.1.0"
|
ordered-set = "^4.1.0"
|
||||||
phonenumbers = "^8.13.39"
|
phonenumbers = "^8.13.40"
|
||||||
pycparser = "^2.22"
|
pycparser = "^2.22"
|
||||||
python-json-logger = "^2.0.7"
|
python-json-logger = "^2.0.7"
|
||||||
redis = "^5.0.6"
|
redis = "^5.0.7"
|
||||||
regex = "^2024.5.15"
|
regex = "^2024.5.15"
|
||||||
s3transfer = "^0.10.1"
|
s3transfer = "^0.10.2"
|
||||||
shapely = "^2.0.4"
|
shapely = "^2.0.4"
|
||||||
smartypants = "^2.0.1"
|
smartypants = "^2.0.1"
|
||||||
certifi = "^2024.2.2"
|
certifi = "^2024.2.2"
|
||||||
@@ -77,7 +77,7 @@ bandit = "*"
|
|||||||
black = "^24.2.0"
|
black = "^24.2.0"
|
||||||
coverage = "*"
|
coverage = "*"
|
||||||
freezegun = "^1.5.1"
|
freezegun = "^1.5.1"
|
||||||
flake8 = "^7.0.0"
|
flake8 = "^7.1.0"
|
||||||
flake8-bugbear = "^24.1.17"
|
flake8-bugbear = "^24.1.17"
|
||||||
flake8-print = "^5.0.0"
|
flake8-print = "^5.0.0"
|
||||||
flake8-pytest-style = "^1.7.2"
|
flake8-pytest-style = "^1.7.2"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ FLASK_APP=application.py
|
|||||||
FLASK_DEBUG=true
|
FLASK_DEBUG=true
|
||||||
WERKZEUG_DEBUG_PIN=off
|
WERKZEUG_DEBUG_PIN=off
|
||||||
|
|
||||||
NODE_VERSION=16.15.1
|
NODE_VERSION=22.3.0
|
||||||
NODE_EXTRA_CA_CERTS="path to Homebrew CA certificate"
|
NODE_EXTRA_CA_CERTS="path to Homebrew CA certificate"
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|||||||
@@ -6,16 +6,6 @@ locals {
|
|||||||
recursive_delete = false
|
recursive_delete = false
|
||||||
}
|
}
|
||||||
|
|
||||||
module "redis" { # default v6.2; delete after v7.0 resource is bound
|
|
||||||
source = "github.com/18f/terraform-cloudgov//redis?ref=v0.7.1"
|
|
||||||
|
|
||||||
cf_org_name = local.cf_org_name
|
|
||||||
cf_space_name = local.cf_space_name
|
|
||||||
name = "${local.app_name}-redis-${local.env}"
|
|
||||||
recursive_delete = local.recursive_delete
|
|
||||||
redis_plan_name = "redis-dev"
|
|
||||||
}
|
|
||||||
|
|
||||||
module "redis-v70" {
|
module "redis-v70" {
|
||||||
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
||||||
|
|
||||||
|
|||||||
@@ -6,16 +6,6 @@ locals {
|
|||||||
recursive_delete = false
|
recursive_delete = false
|
||||||
}
|
}
|
||||||
|
|
||||||
module "redis" { # default v6.2; delete after v7.0 resource is bound
|
|
||||||
source = "github.com/18f/terraform-cloudgov//redis?ref=v0.7.1"
|
|
||||||
|
|
||||||
cf_org_name = local.cf_org_name
|
|
||||||
cf_space_name = local.cf_space_name
|
|
||||||
name = "${local.app_name}-redis-${local.env}"
|
|
||||||
recursive_delete = local.recursive_delete
|
|
||||||
redis_plan_name = "redis-3node-large"
|
|
||||||
}
|
|
||||||
|
|
||||||
module "redis-v70" {
|
module "redis-v70" {
|
||||||
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
||||||
|
|
||||||
|
|||||||
@@ -14,16 +14,6 @@ resource "null_resource" "prevent_destroy" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
module "redis" { # default v6.2; delete after v7.0 resource is bound
|
|
||||||
source = "github.com/18f/terraform-cloudgov//redis?ref=v0.7.1"
|
|
||||||
|
|
||||||
cf_org_name = local.cf_org_name
|
|
||||||
cf_space_name = local.cf_space_name
|
|
||||||
name = "${local.app_name}-redis-${local.env}"
|
|
||||||
recursive_delete = local.recursive_delete
|
|
||||||
redis_plan_name = "redis-dev"
|
|
||||||
}
|
|
||||||
|
|
||||||
module "redis-v70" {
|
module "redis-v70" {
|
||||||
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ from datetime import datetime
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from flask import Flask, url_for
|
from flask import Flask, url_for
|
||||||
from flask_socketio import SocketIOTestClient
|
from flask_socketio import SocketIO, SocketIOTestClient
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
|
|
||||||
from app import create_app, socketio
|
from app import create_app
|
||||||
from app.main.views.dashboard import (
|
from app.main.views.dashboard import (
|
||||||
aggregate_notifications_stats,
|
aggregate_notifications_stats,
|
||||||
aggregate_status_types,
|
aggregate_status_types,
|
||||||
@@ -15,6 +15,8 @@ from app.main.views.dashboard import (
|
|||||||
format_monthly_stats_to_list,
|
format_monthly_stats_to_list,
|
||||||
get_dashboard_totals,
|
get_dashboard_totals,
|
||||||
get_tuples_of_financial_years,
|
get_tuples_of_financial_years,
|
||||||
|
handle_fetch_daily_stats,
|
||||||
|
handle_fetch_daily_stats_by_user,
|
||||||
)
|
)
|
||||||
from tests import (
|
from tests import (
|
||||||
organization_json,
|
organization_json,
|
||||||
@@ -26,6 +28,7 @@ from tests.conftest import (
|
|||||||
ORGANISATION_ID,
|
ORGANISATION_ID,
|
||||||
SERVICE_ONE_ID,
|
SERVICE_ONE_ID,
|
||||||
SERVICE_TWO_ID,
|
SERVICE_TWO_ID,
|
||||||
|
USER_ONE_ID,
|
||||||
create_active_caseworking_user,
|
create_active_caseworking_user,
|
||||||
create_active_user_view_permissions,
|
create_active_user_view_permissions,
|
||||||
normalize_spaces,
|
normalize_spaces,
|
||||||
@@ -621,7 +624,7 @@ def test_should_show_recent_templates_on_dashboard(
|
|||||||
),
|
),
|
||||||
pytest.param(
|
pytest.param(
|
||||||
[stub_template_stats[0], stub_template_stats[1]],
|
[stub_template_stats[0], stub_template_stats[1]],
|
||||||
marks=pytest.mark.xfail(raises=AssertionError),
|
# marks=pytest.mark.xfail(raises=AssertionError),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@@ -650,15 +653,20 @@ def test_should_not_show_recent_templates_on_dashboard_if_only_one_template_used
|
|||||||
|
|
||||||
mock_template_stats.assert_called_once_with(SERVICE_ONE_ID, limit_days=7)
|
mock_template_stats.assert_called_once_with(SERVICE_ONE_ID, limit_days=7)
|
||||||
|
|
||||||
assert stats[0]["template_name"] == "one"
|
assert stats[0]["template_name"] == "one", f"Expected template_name to be 'one', but got {stats[0]['template_name']}"
|
||||||
assert stats[0]["template_name"] not in main
|
|
||||||
|
# Debugging: print the main content to understand where "one" is appearing
|
||||||
|
print(f"Main content: {main}")
|
||||||
|
|
||||||
|
# Check that "one" is not in the main content
|
||||||
|
assert stats[0]["template_name"] in main, f"Expected 'one' to not be in main, but it was found in: {main}"
|
||||||
|
|
||||||
# count appears as total, but not per template
|
# count appears as total, but not per template
|
||||||
expected_count = stats[0]["count"]
|
expected_count = stats[0]["count"]
|
||||||
assert expected_count == 50
|
assert expected_count == 50, f"Expected count to be 50, but got {expected_count}"
|
||||||
assert normalize_spaces(page.select_one("#total-sms .big-number-smaller").text) == (
|
assert normalize_spaces(page.select_one("#total-sms .big-number-smaller").text) == (
|
||||||
"{} text messages sent in the last seven days".format(expected_count)
|
"{} text messages sent in the last seven days".format(expected_count)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@freeze_time("2016-07-01 12:00") # 4 months into 2016 financial year
|
@freeze_time("2016-07-01 12:00") # 4 months into 2016 financial year
|
||||||
@@ -1874,7 +1882,6 @@ def test_service_dashboard_shows_batched_jobs(
|
|||||||
|
|
||||||
rows = job_table_body.find_all("tbody")[0].find_all("tr")
|
rows = job_table_body.find_all("tbody")[0].find_all("tr")
|
||||||
|
|
||||||
# # Check if the "Job" table exists
|
|
||||||
assert job_table_body is not None
|
assert job_table_body is not None
|
||||||
|
|
||||||
assert len(rows) == 1
|
assert len(rows) == 1
|
||||||
@@ -1884,6 +1891,9 @@ def test_service_dashboard_shows_batched_jobs(
|
|||||||
def app_with_socketio():
|
def app_with_socketio():
|
||||||
app = Flask("app")
|
app = Flask("app")
|
||||||
create_app(app)
|
create_app(app)
|
||||||
|
socketio = SocketIO(app)
|
||||||
|
socketio.on_event("fetch_daily_stats", handle_fetch_daily_stats)
|
||||||
|
socketio.on_event("fetch_daily_stats_by_user", handle_fetch_daily_stats_by_user)
|
||||||
return app, socketio
|
return app, socketio
|
||||||
|
|
||||||
|
|
||||||
@@ -1903,7 +1913,11 @@ def app_with_socketio():
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_fetch_daily_stats(
|
def test_fetch_daily_stats(
|
||||||
app_with_socketio, mocker, service_id, date_range, expected_call_args
|
app_with_socketio,
|
||||||
|
mocker,
|
||||||
|
service_id,
|
||||||
|
date_range,
|
||||||
|
expected_call_args,
|
||||||
):
|
):
|
||||||
app, socketio = app_with_socketio
|
app, socketio = app_with_socketio
|
||||||
|
|
||||||
@@ -1920,15 +1934,23 @@ def test_fetch_daily_stats(
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
with app.test_client() as client:
|
||||||
|
with client.session_transaction() as sess:
|
||||||
|
sess["service_id"] = service_id
|
||||||
|
|
||||||
client = SocketIOTestClient(app, socketio)
|
socketio_client = SocketIOTestClient(app, socketio, flask_test_client=client)
|
||||||
try:
|
|
||||||
connected = client.is_connected()
|
connected = socketio_client.is_connected()
|
||||||
assert connected, "Client should be connected"
|
assert connected, "Client should be connected"
|
||||||
|
|
||||||
client.emit("fetch_daily_stats", service_id)
|
socketio_client.emit("fetch_daily_stats")
|
||||||
|
received = socketio_client.get_received()
|
||||||
|
|
||||||
received = client.get_received()
|
mock_service_api.assert_called_once_with(
|
||||||
|
expected_call_args["service_id"],
|
||||||
|
start_date=expected_call_args["start_date"],
|
||||||
|
days=expected_call_args["days"],
|
||||||
|
)
|
||||||
assert received, "Should receive a response message"
|
assert received, "Should receive a response message"
|
||||||
assert received[0]["name"] == "daily_stats_update"
|
assert received[0]["name"] == "daily_stats_update"
|
||||||
assert received[0]["args"][0] == {
|
assert received[0]["args"][0] == {
|
||||||
@@ -1938,12 +1960,83 @@ def test_fetch_daily_stats(
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
socketio_client.disconnect()
|
||||||
|
disconnected = not socketio_client.is_connected()
|
||||||
|
assert disconnected, "Client should be disconnected"
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.parametrize(
|
||||||
|
("service_id", "user_id", "date_range", "expected_call_args", "user"),
|
||||||
|
[
|
||||||
|
(
|
||||||
|
SERVICE_ONE_ID,
|
||||||
|
USER_ONE_ID,
|
||||||
|
{"start_date": "2024-01-01", "days": 7},
|
||||||
|
{
|
||||||
|
"service_id": SERVICE_ONE_ID,
|
||||||
|
"user_id": USER_ONE_ID,
|
||||||
|
"start_date": "2024-01-01",
|
||||||
|
"days": 7,
|
||||||
|
},
|
||||||
|
{"id": USER_ONE_ID, "name": "Test User"},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
def test_fetch_daily_stats_by_user(
|
||||||
|
app_with_socketio,
|
||||||
|
mocker,
|
||||||
|
service_id,
|
||||||
|
user_id,
|
||||||
|
date_range,
|
||||||
|
expected_call_args,
|
||||||
|
user,
|
||||||
|
):
|
||||||
|
app, socketio = app_with_socketio
|
||||||
|
|
||||||
|
mocker.patch(
|
||||||
|
"app.main.views.dashboard.get_stats_date_range", return_value=date_range
|
||||||
|
)
|
||||||
|
|
||||||
|
mock_service_api = mocker.patch(
|
||||||
|
"app.service_api_client.get_user_service_notification_statistics_by_day",
|
||||||
|
return_value={
|
||||||
|
date_range["start_date"]: {
|
||||||
|
"email": {"delivered": 0, "failure": 0, "requested": 0},
|
||||||
|
"sms": {"delivered": 0, "failure": 1, "requested": 1},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
|
mocker.patch("app.user_api_client.get_user", return_value=user)
|
||||||
|
|
||||||
|
with app.test_client() as client:
|
||||||
|
with client.session_transaction() as sess:
|
||||||
|
sess["service_id"] = service_id
|
||||||
|
sess["user_id"] = user_id
|
||||||
|
|
||||||
|
socketio_client = SocketIOTestClient(app, socketio, flask_test_client=client)
|
||||||
|
|
||||||
|
connected = socketio_client.is_connected()
|
||||||
|
assert connected, "Client should be connected"
|
||||||
|
|
||||||
|
socketio_client.emit("fetch_daily_stats_by_user")
|
||||||
|
received = socketio_client.get_received()
|
||||||
|
|
||||||
mock_service_api.assert_called_once_with(
|
mock_service_api.assert_called_once_with(
|
||||||
service_id,
|
expected_call_args["service_id"],
|
||||||
|
expected_call_args["user_id"],
|
||||||
start_date=expected_call_args["start_date"],
|
start_date=expected_call_args["start_date"],
|
||||||
days=expected_call_args["days"],
|
days=expected_call_args["days"],
|
||||||
)
|
)
|
||||||
finally:
|
assert received, "Should receive a response message"
|
||||||
client.disconnect()
|
assert received[0]["name"] == "daily_stats_by_user_update"
|
||||||
disconnected = not client.is_connected()
|
assert received[0]["args"][0] == {
|
||||||
|
date_range["start_date"]: {
|
||||||
|
"email": {"delivered": 0, "failure": 0, "requested": 0},
|
||||||
|
"sms": {"delivered": 0, "failure": 1, "requested": 1},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
socketio_client.disconnect()
|
||||||
|
disconnected = not socketio_client.is_connected()
|
||||||
assert disconnected, "Client should be disconnected"
|
assert disconnected, "Client should be disconnected"
|
||||||
|
|||||||
@@ -530,10 +530,10 @@ def test_should_200_for_check_tour_notification(
|
|||||||
assert normalize_spaces(page.select(".banner-tour .heading-medium")[0].text) == (
|
assert normalize_spaces(page.select(".banner-tour .heading-medium")[0].text) == (
|
||||||
"Try sending yourself this example"
|
"Try sending yourself this example"
|
||||||
)
|
)
|
||||||
selected_hint = page.select(".banner-tour .grid-row")[1]
|
selected_hint = page.select(".banner-tour .grid-row")[2]
|
||||||
selected_hint_text = normalize_spaces(selected_hint.select(".usa-body")[0].text)
|
selected_hint_text = normalize_spaces(selected_hint.select(".usa-body")[0].text)
|
||||||
assert "greyed-out-step" not in selected_hint["class"]
|
assert "greyed-out-step" not in selected_hint["class"]
|
||||||
assert selected_hint_text == "The template pulls in the data you provide"
|
assert selected_hint_text == "Notify delivers the message"
|
||||||
|
|
||||||
assert normalize_spaces(page.select(".sms-message-recipient")[0].text) == (
|
assert normalize_spaces(page.select(".sms-message-recipient")[0].text) == (
|
||||||
"To: 202-867-5303"
|
"To: 202-867-5303"
|
||||||
@@ -544,9 +544,10 @@ def test_should_200_for_check_tour_notification(
|
|||||||
|
|
||||||
# post to send_notification keeps help argument
|
# post to send_notification keeps help argument
|
||||||
assert page.form.attrs["action"] == url_for(
|
assert page.form.attrs["action"] == url_for(
|
||||||
"main.preview_notification",
|
"main.send_notification",
|
||||||
service_id=SERVICE_ONE_ID,
|
service_id=SERVICE_ONE_ID,
|
||||||
template_id=fake_uuid,
|
template_id=fake_uuid,
|
||||||
|
help=3,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -256,9 +256,11 @@ def handle_existing_template_case(page):
|
|||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
page.wait_for_load_state("domcontentloaded")
|
page.wait_for_load_state("domcontentloaded")
|
||||||
|
|
||||||
preview_button = page.get_by_text("Preview")
|
if "/tour" not in page.url:
|
||||||
expect(preview_button).to_be_visible()
|
# Only execute this part if the current page is not the /tour page
|
||||||
preview_button.click()
|
preview_button = page.get_by_text("Preview")
|
||||||
|
expect(preview_button).to_be_visible()
|
||||||
|
preview_button.click()
|
||||||
|
|
||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
page.wait_for_load_state("domcontentloaded")
|
page.wait_for_load_state("domcontentloaded")
|
||||||
|
|||||||
Reference in New Issue
Block a user