STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_documents.py File Reference

Go to the source code of this file.

Namespaces

namespace  test_documents

Functions

 test_documents._isolate (tmp_path, monkeypatch)
 test_documents.client ()
 test_documents._create (client, headers, name="Baseline", config=None)
 test_documents._share (client, doc_id, emails, *, headers=A, params=None)
 test_documents._take (client, doc_id, headers=A, params=None)
 test_documents._find (client, headers, doc_id)
 test_documents.test_create_lists_and_isolates_until_shared (client)
 test_documents.test_rename (client)
 test_documents.test_delete_is_gone (client)
 test_documents.test_autosave_load_and_history (client)
 test_documents.test_history_needs_a_share (client)
 test_documents.test_history_readable_once_shared (client)
 test_documents.test_release_is_immutable_and_listed (client)
 test_documents.test_restore_returns_older_state (client)
 test_documents.test_share_grants_edit_and_writes_into_the_owners_folder (client, tmp_path)
 test_documents.test_share_replaces_the_whole_list_and_drops_the_owner (client)
 test_documents.test_any_editor_may_reshare (client)
 test_documents.test_leave_removes_only_yourself (client)
 test_documents.test_owner_cannot_leave_their_own_config (client)
 test_documents.test_legacy_records_without_sharedwith_still_work (client, tmp_path)
 test_documents.test_browse_groups_by_owner_and_hides_what_you_can_edit (client)
 test_documents.test_copy_is_independent_and_needs_no_share (client)
 test_documents.test_copy_of_a_missing_config_is_404 (client)
 test_documents._call (client, name, doc_id, headers, params)
 test_documents.test_every_doc_scoped_route_is_listed ()
 test_documents.test_doc_scoped_route_forbids_an_unshared_owner (client, name)
 test_documents.test_doc_scoped_route_404s_a_foreign_id_without_owner (client, tmp_path, name)
 test_documents.test_owner_param_cannot_escape_the_root (client, tmp_path, owner)
 test_documents.test_microversion_history_is_in_write_order (client, tmp_path)
 test_documents.test_ui_is_stored_and_returned_alongside_the_config (client)
 test_documents.test_a_design_stored_before_ui_existed_still_loads (client, tmp_path)
 test_documents.test_ui_round_trips_through_a_release (client)
 test_documents.test_ui_round_trips_through_a_microversion (client)

Variables

 test_documents.reason
 test_documents.app = FastAPI()
dict test_documents.A = {"X-Auth-Email": "alice@berkeley.edu"}
dict test_documents.B = {"X-Auth-Email": "bob@berkeley.edu"}
dict test_documents.OWNER_A = {"owner": A["X-Auth-Email"]}
str test_documents.BASE = "/api/engine/documents"
dict test_documents._DOC_SCOPED
dict test_documents._UNSCOPED