Commit Graph

225 Commits

Author SHA1 Message Date
Kenneth Kehl
c67407f090 fix some tests 2024-08-23 12:59:00 -07:00
Cliff Hill
6b8be20ed2 Black & isort.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-08-02 14:50:52 -04:00
Jonathan Bobel
6a5b033700 Needed to wrap this line 2024-07-30 14:35:30 -04:00
Jonathan Bobel
4df7eb57d7 Adjusting tests 2024-07-30 14:24:02 -04:00
Jonathan Bobel
c6af0957e9 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1252-missing-blue-boxes 2024-03-27 09:57:34 -04:00
Jonathan Bobel
6c1090ecb2 1252 - add back blue boxes for pending and delivered 2024-03-26 16:06:13 -04:00
Beverly Nguyen
89e7de0ab6 fixed the testing 2024-03-26 12:37:06 -07:00
Beverly Nguyen
e743ab41ff merge main and fixed conflicts 2024-03-26 10:53:01 -07:00
Beverly Nguyen
e9b9072ae6 updated datetimes based on style guide 2024-03-18 15:10:26 -07:00
Beverly Nguyen
ee5fe38001 update testing 2024-03-08 11:30:49 -08:00
Beverly Nguyen
d0b37cabd6 Merge remote-tracking branch 'origin/main' into 1210-create-confirmation-status-page-the-last-page-in-the-preview-send-flow 2024-03-04 11:45:06 -08:00
Kenneth Kehl
8661a22353 fix date format in batch review (notify-admin-1171) 2024-02-29 08:24:53 -08:00
Beverly Nguyen
fff70d4edc fixed spacing 2024-02-23 13:37:48 -08:00
Beverly Nguyen
2ee744e56d fixed spacing 2024-02-23 13:31:49 -08:00
Beverly Nguyen
7fc5b88ea3 updated testing 2024-02-23 13:26:46 -08:00
Beverly Nguyen
c2d7828138 created an alert for confirmation during send flow 2024-02-13 17:48:06 -08:00
Kenneth Kehl
802ebfa243 use sent_at instead of updated_at 2024-02-02 08:31:05 -08:00
Beverly Nguyen
25305d0706 update testing 2024-01-16 12:01:39 -08:00
Beverly Nguyen
0e110201d6 update testing 2024-01-16 11:28:58 -08:00
Kenneth Kehl
36987e7202 notify-api-861 show eastern time 2023-11-16 12:24:27 -08:00
Kenneth Kehl
8c9acad081 more tests 2023-10-26 12:05:26 -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
2e16d8d31b Updates after merging black 2023-08-28 12:12:21 -04:00
Kenneth Kehl
8c9721d8e2 notify-api-412 use black to enforce python coding style 2023-08-25 09:12:23 -07:00
Jonathan Bobel
242c7acd34 Changing U.S. Notify to Notify.gov (#656) 2023-07-28 11:12:46 -04:00
Andrew Shumway
34fef6954c Added UTC to formatter return strings and appropriate tests (#617)
Co-authored-by: Andrew Shumway <ashumway@flexion.us>
2023-07-27 11:22:05 -04:00
Kenneth Kehl
20a0bd5c99 merge from main 2023-07-05 15:07:38 -07:00
Kenneth Kehl
d2d7a75a5f notify-536: accurately reflect delivery receipts in UI (#551) 2023-06-27 11:20:58 -04:00
Kenneth Kehl
7168309fbb fix all tests 2023-06-26 14:07:28 -07:00
Carlo Costino
92d25f5a69 Convert frontend display to be just UTC (#540)
This changeset converts the display of dates and times to be just UTC to match the recent changes in the backend.  This unwinds a bit of work that was done previously and allows us to start with a clean slate in how we want to approach displaying dates and times going forward. It also adds a bit of explanatory text to help users.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
Co-authored-by: stvnrlly <steven.reilly@gsa.gov>
2023-06-12 15:49:48 -04:00
Kenneth Kehl
c9576f9a1d notify-300 change error message to show total message limit (#489) 2023-05-31 20:10:10 -04:00
Kenneth Kehl
02d5cfc62b fix test 2023-05-26 13:01:34 -07:00
Kenneth Kehl
618c2eb6bb fix skips and xfails 2023-05-26 12:35:48 -07:00
Ryan Ahearn
2ad21a6f4f Replace UK phone numbers in tests with US numbers 2023-01-06 11:19:56 -05:00
stvnrlly
40368fe819 Merge branch 'main' into stvnrlly-paperless 2022-12-09 12:33:16 -05:00
stvnrlly
b6bc02eb6b us → u.s. 2022-12-06 11:03:47 -05:00
stvnrlly
420845fac7 remove antivirus code (email does not allow attachments via ui) 2022-12-05 16:35:46 -05:00
stvnrlly
944715ac46 big commit with letters removal 2022-12-05 15:33:44 -05:00
stvnrlly
03dad94af0 Merge branch 'main' into stvnrlly-timezones 2022-11-28 16:21:43 -05:00
stvnrlly
e12e780a05 code cleanup 2022-11-28 15:53:56 -05:00
stvnrlly
77c0faf4e5 more test fixes, one test remaining 2022-11-28 13:51:37 -05:00
Ryan Ahearn
75e1975de1 Fix tests that were relying on local timezone 2022-11-28 12:22:22 -05:00
stvnrlly
a2b58c926e more test fixes & letter trimming 2022-11-22 22:50:47 -05:00
stvnrlly
ca1897973a test time fixes and bonus letter removal 2022-11-22 17:03:42 -05: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
Katie Smith
cdfe852d25 Add filetype to all links to download user reports / examples 2022-05-24 10:27:27 +01:00
Chris Hill-Scott
8b93a977a0 Remove temporary raw_response argument
We added a new argument to `client_request.get` and
`client_request.post` to specify that it should return a raw `Response`
object rather than an instance of `BeautifulSoup`.

This is useful because sometimes we need to look at stuff like the
response headers.

However it turns out we already have a separate method for this, so
rather than invent something new I think it’s better to stick with the
thing we already have.
2022-01-10 14:39:45 +00:00
Chris Hill-Scott
0706664be4 Stop using logged_in_client fixture
We have a `client_request` fixture which does a bunch of useful stuff
like:
- checking the status code of the response
- returning a `BeautifulSoup` object

Lots of our tests still use an older fixture called `logged_in_client`.
This is not as good because:
- it returns a raw `Response` object
- doesn’t do the additional checks
- means our tests contain a lot of repetetive boilerplate like `page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')`

This commit converts all the tests using `logged_in_client` to:
use `client_request` instead.
2022-01-10 14:39:44 +00:00
Rebecca Law
cca94e956b Update content 2021-07-14 09:55:20 +01:00