Ryan Ahearn
dd90d82942
Use naive datetimes for format_delta math
2022-11-30 16:42:42 -05:00
stvnrlly
006e7b5d0a
post-human test fixes
2022-11-30 11:24:13 -05:00
stvnrlly
a0ade73846
getting human time math more correct
2022-11-29 22:07:32 -05:00
stvnrlly
8f47af11da
use local timezone to get future sending options
2022-11-29 16:38:06 -05:00
stvnrlly
5cd91844ef
add timezone to scheduled send options
2022-11-28 20:33:03 -05:00
stvnrlly
c8486ea015
midday → noon
2022-11-28 16:57:49 -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
ca135e32e8
fix last test
2022-11-28 14:01:51 -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
Ryan Ahearn
2f9cb5ae6d
Fix message status test
2022-11-28 12:21:44 -05:00
stvnrlly
9689aaf89b
more test fixes & letter trimming
2022-11-28 11:15:41 -05:00
stvnrlly
8bd1285bfa
more test fixes
2022-11-28 10:48:51 -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
stvnrlly
86b28e5e44
some test updates
2022-11-22 16:33:55 -05:00
stvnrlly
46723b6c11
initial timezone pass, which breaks many tests
2022-11-22 12:00:29 -05:00
Ryan Ahearn
a79adeb060
Update test for US spelling of organization
2022-11-04 13:17:57 -04:00
stvnrlly
3386317f5b
trim non-existant pages further
2022-11-02 11:02:32 -04:00
stvnrlly
9692185cd6
some test tweaks for page reductions
2022-11-02 10:45:09 -04:00
stvnrlly
218eb3559f
Merge branch 'main' into stvnrlly-remove-broadcasts
2022-10-26 01:27:44 +00:00
Steven Reilly
04aba21296
Merge pull request #139 from GSA/stvnrlly-hide-letters
...
Hide letters in non-admin UI
2022-10-18 11:35:44 -04:00
stvnrlly
b6a6a14bc7
now with even fewer letters
2022-10-18 15:27:13 +00:00
Steven Reilly
345516606f
Merge pull request #59 from GSA/stvnrlly-update-form-flow
...
Update services for post-sign-up tour
2022-10-17 09:43:32 -04:00
stvnrlly
44e8c0fe89
post-merge flake8 fix
2022-10-17 13:42:36 +00:00
Steven Reilly
3cabdf4f38
Merge branch 'main' into stvnrlly-hide-letters
2022-10-14 15:33:01 -04:00
stvnrlly
aac17bb2af
get flake8's approval
2022-10-14 19:22:03 +00:00
stvnrlly
38fa1286b2
clean up admin ui & update tests
2022-10-14 18:58:55 +00:00
stvnrlly
a2c6c2f08c
remove letters from dashboard
2022-10-13 20:51:45 +00:00
stvnrlly
067b4b3742
swap dollar symbols for pound symbols
2022-10-12 20:16:22 +00:00
stvnrlly
f16b5dd1c4
remove broadcast-related code
2022-10-04 03:04:13 +00: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
Ryan Ahearn
7ce9f8cfcb
Remove MOU bucket, for now
2022-09-21 23:18:15 -04:00
stvnrlly
3e7b5b4370
update tests based on updated orgs
2022-09-15 18:47:04 +00:00
jimmoffet
f2b47c9e74
fix weird freeze_time decorator spacing
2022-09-13 13:34:45 -07:00
jimmoffet
4b5e659d3f
fix weird pytest decorator spacing
2022-09-13 13:30:52 -07:00
jimmoffet
b7435aefed
clean up comments
2022-09-13 13:18:25 -07:00
jimmoffet
24c9854ca6
testing for get_jobs in service dashboard
2022-09-13 13:16:17 -07:00
jimmoffet
c702104421
fix redis mocking for test runner
2022-09-12 17:38:53 -07:00
jimmoffet
e77e9200cd
dummy phone
2022-09-09 17:16:01 -07:00
jimmoffet
69abec0bb3
change dashboard test to reflect demo changes to uploads view
2022-09-09 17:02:48 -07:00
Ryan Ahearn
68129bc9f4
Address flake8 issues
2022-08-09 14:14:49 +00:00
jimmoffet
b465131338
all tests passing
2022-08-05 01:22:32 -07:00
jimmoffet
dad051a662
2767 passing
2022-08-05 00:25:03 -07:00
Ben Thorner
543be77776
Merge pull request #4258 from alphagov/speed-up-templates-page-179736794
...
Optimise load time for service "Templates" page
2022-06-08 13:37:58 +01:00
Chris Hill-Scott
b91babc67e
Fix relative URLs in support tickets
...
When we get a support ticket we put a link to the service at the end.
As part of 8b7f2fbf04 we accidentally made
these URLs relative, rather than absolute. This means they aren’t made
into links by email clients or Zendesk.
This commit fixes the links to include the domain again.
2022-06-07 13:50:24 +01:00
Ben Thorner
bcfc6ce707
Decouple deletion tests from "get_templates" fn
...
Using create_template here is easier than template_json as it has
various parameters preset [^1].
[^1]: https://github.com/alphagov/notifications-admin/blob/master/tests/conftest.py#L3986
2022-06-07 11:05:33 +01: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