Commit Graph

422 Commits

Author SHA1 Message Date
Jonathan Bobel
e1981d3c65 Auto reformat looks like 2024-03-13 13:33:44 -04:00
Beverly Nguyen
d1fe8a2332 updated testing 2024-03-08 16:03:08 -08:00
Beverly Nguyen
cb3fc0f039 update test 2024-03-08 12:25:09 -08:00
Beverly Nguyen
58a067358e with reivew request 2024-03-08 10:32:29 -08:00
Beverly Nguyen
2e7aeb1dbf fixed test 2024-02-16 18:05:13 -08:00
Beverly Nguyen
02d1c2b26e fixed test 2024-02-16 18:01:36 -08:00
Beverly Nguyen
843e4bb2fa fixed testing and removed recipient 2024-02-13 16:18:50 -08:00
Beverly Nguyen
01eac988f1 fixed testing 2024-02-13 14:02:05 -08:00
Beverly Nguyen
b019dc3fe9 updated pytest 2024-02-08 18:43:17 -08:00
Kenneth Kehl
9fbaca8f9f fix flake 8 2023-12-20 10:33:11 -08:00
Kenneth Kehl
14f70620f9 code review feedback 2023-12-20 10:26:14 -08:00
Kenneth Kehl
cbc69191be fix s3upload mock 2023-12-18 12:58:36 -08:00
Kenneth Kehl
62ae2e96b7 mock s3upload 2023-12-18 12:43:13 -08:00
Kenneth Kehl
bab0b53ffb rework how we display error message for disallowed phone numbers 2023-12-18 12:31:40 -08:00
Kenneth Kehl
94b86f1afc fix tests 2023-12-15 10:29:42 -08:00
Kenneth Kehl
32b4e6918f flake8 2023-12-14 13:24:34 -08:00
Andrew Shumway
3d0460a9ee Revert missing logic 2023-11-22 11:55:40 -07:00
Andrew Shumway
53a3f4c852 Remove unnecessary logic/fix tests 2023-11-22 11:06:15 -07:00
Andrew Shumway
f51d4be8de Add tests with notify.gov/usnotify as default 2023-11-20 10:06:17 -07:00
Andrew Shumway
654b406827 Added/fixed tests to remove notify from message flow 2023-11-17 11:19:26 -07:00
Carlo Costino
4330fbe493 Skip failing test for now in test_send.py
This changeset marks the test_warns_if_file_sent_already_errors test in tests/app/main/views/test_send.py to skip for now.  This test started failing locally for some of the team members with no clear indication as to why.  We tried the following:

- Checking for uncommitted local changes
- Downgrading a recent dependency update
- Combing through recent changes for potential breaking changes
- Debugging the test itself as it ran

A new issue will be created to investigate this further, but we did not want it to block our current work.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-06 17:42:00 -05:00
Kenneth Kehl
b487a915f6 fix remaining tests 2023-10-30 08:42:11 -07:00
Carlo Costino
acb70b43cd Reformatted and cleaned up more tests.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Jonathan Bobel
fea6debaf2 More changes from govuk to usa 2023-08-28 14:40:33 -04:00
Kenneth Kehl
8c9721d8e2 notify-api-412 use black to enforce python coding style 2023-08-25 09:12:23 -07:00
Kenneth Kehl
c6eb007386 merge from main 2023-08-25 08:57:24 -07:00
Jonathan Bobel
ff33c7c7f9 Fixing tests 2023-08-14 15:29:10 -04:00
Kenneth Kehl
c165589d4c notify-api-340 remove daily limit 2023-07-11 12:37:27 -07:00
Jonathan Bobel
e0d2d74067 Update dashboard and template flow (#514)
* Updated header and footer
* Moved files around and updated gulpfile to correct the build process when it goes to production
* Updated fonts
* Adjusted grid templating
* Adding images to assets
* Updated account pages, dashboard, and pages in message sending flow
* Updated the styling for the landing pages in the account section once logged in
2023-06-08 13:12:00 -04:00
Andrew Shumway
c97b412afe Fix assert function signature in test 2023-06-01 12:33:57 -06:00
Andrew Shumway
6c88cd980f Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-445 2023-06-01 10:48:17 -06:00
Kenneth Kehl
618c2eb6bb fix skips and xfails 2023-05-26 12:35:48 -07:00
Andrew Shumway
d2fd5ab07d Added display of daily limit and remaining amount after csv upload 2023-05-15 14:37:05 -06:00
Ryan Ahearn
de668d7aba Remove contact-list references from code 2023-04-12 15:35:14 -04:00
Ryan Ahearn
7d08e9e0d4 Upgrade flask and install newrelic package 2023-01-19 17:29:21 -05:00
Ryan Ahearn
142b5f5e43 Update excel-based upload files 2023-01-06 11:47:57 -05:00
Ryan Ahearn
2ad21a6f4f Replace UK phone numbers in tests with US numbers 2023-01-06 11:19:56 -05:00
stvnrlly
b00fea05bc updates to correct test failures 2023-01-05 14:35:37 -05:00
Tim Lowden
f8daea1879 Updating for US English
Words found:
personalis*
customis*
organis*
colour
behaviour
2022-12-20 09:44:33 -05:00
stvnrlly
5b2643ca52 test works as written 2022-12-06 09:16:27 -05:00
stvnrlly
420845fac7 remove antivirus code (email does not allow attachments via ui) 2022-12-05 16:35:46 -05:00
stvnrlly
36e0e67afc remove pdf stuff 2022-12-05 16:22:19 -05:00
stvnrlly
944715ac46 big commit with letters removal 2022-12-05 15:33:44 -05:00
stvnrlly
77c0faf4e5 more test fixes, one test remaining 2022-11-28 13:51:37 -05:00
stvnrlly
ca1897973a test time fixes and bonus letter removal 2022-11-22 17:03:42 -05:00
Ryan Ahearn
5f1a1f083a Proactively specify aws region for s3 operations 2022-09-26 10:25:03 -04:00
Ryan Ahearn
a90dcc918b Provide s3 credentials for each individual bucket 2022-09-23 12:59:55 -04:00
jimmoffet
dad051a662 2767 passing 2022-08-05 00:25:03 -07:00
Chris Hill-Scott
8b7f2fbf04 Stop using _external=True in tests
It looks like, by default, Flask no longer makes full URLs, for example
`https://example.com/path`. Instead it does `/path`. This will still
work fine, and if anything is better because it reduces the number of
bytes of HTML we are sending.

It won’t mean that requests go over `http` instead of `https` without
the protocol because we set the appropriate HSTS header here:
0c57da7781/ansible/roles/paas-proxy/templates/admin.conf.j2 (L11)

This commit changes all our tests to reflect that URLs no longer have
the protocol and domain in them. `_external=True` is Flask’s way of
saying whether a URL should be generated with the domain and protocol
(`True`) or without it (`False`).

Again, I can’t find the changelog or diff where this was introuduced,
but if you’d like to go spelunking then here’s a starting point:
50374e3cfe/src/flask/helpers.py (L192)
2022-06-06 12:12:52 +01:00
David McDonald
19e6e38426 Calculate page count based on template values when previewing
Similar to the bug shown here
https://www.pivotaltracker.com/story/show/181513431, but to fix the case
when previewing a letter send using a CSV upload it wasn't using
template values to calculate the page length.
2022-05-16 15:44:05 +01:00