browsertrix/backend/test
Tessa Walsh aaf18e70a0
Add created date to Organization and fix datetimes across backend (#1921)
Fixes #1916

- Add `created` field to Organization and OrgOut, set on org creation
- Add migration to backfill `created` dates from first workflow
`created`
- Replace `datetime.now()` and `datetime.utcnow()` across app with
consistent timezone-aware `utils.dt_now` helper function, which now uses
`datetime.now(timezone.utc)`. This is in part to ensure consistency in
how we handle datetimes, and also to get ahead of timezone naive
datetime creation methods like `datetime.utcnow()` being deprecated in
Python 3.12. For more, see:
https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated
2024-07-15 19:46:32 -07:00
..
data Add superuser API endpoints to export and import org data (#1394) 2024-07-02 17:14:34 -04:00
__init__.py
conftest.py Improve handling of duplicate org name/slug (#1917) 2024-07-10 19:24:50 -07:00
echo_server.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test_collections.py
test_crawl_config_search_values.py
test_crawl_config_tags.py
test_crawlconfigs.py
test_filter_sort_results.py
test_login.py
test_org_subs.py Improve handling of duplicate org name/slug (#1917) 2024-07-10 19:24:50 -07:00
test_org.py Add created date to Organization and fix datetimes across backend (#1921) 2024-07-15 19:46:32 -07:00
test_permissions.py
test_profiles.py Disable uploading and creating browser profiles when org is read-only (#1907) 2024-07-01 23:15:38 -07:00
test_qa.py Show QA meter while analysis is running (#1854) 2024-06-12 12:32:01 -04:00
test_run_crawl.py Backend: Move page file and error counts to crawl replay.json endpoint (#1868) 2024-06-20 19:02:57 -07:00
test_settings.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test_stop_cancel_crawl.py
test_uploads.py Add API endpoint to delete org (#1448) 2024-07-03 16:00:11 -04:00
test_users.py Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
test_utils.py
test_webhooks.py
test_workflow_auto_add_to_collection.py
test_y_org_import_export.py Add API endpoint to delete org (#1448) 2024-07-03 16:00:11 -04:00
test_z_delete_org.py Add API endpoint to delete org (#1448) 2024-07-03 16:00:11 -04:00
utils.py