Skip to content

Replace get_document_revision_public with get_user_client - #516

Open
torcolvin wants to merge 1 commit into
mainfrom
replace-get-document-revision-public
Open

Replace get_document_revision_public with get_user_client#516
torcolvin wants to merge 1 commit into
mainfrom
replace-get-document-revision-public

Conversation

@torcolvin

Copy link
Copy Markdown
Collaborator
  • Add a revision param to get_document and a get_user_client helper for already existing users, then drop the now-unused session= param on _send_request and SyncGateway's duplicate __public_port field. Create accessor since using __ means the attributes are not accessible from superclasses.
  • replace assertion about exception with pytest.raises to ensure that it raises the exception

Drops some complexity around session creation and moves things to more logical locations to indicate that this is a user client and which user client.

- Add a `revision` param to get_document and a get_user_client helper for
already existing users, then drop the now-unused session= param on
_send_request and SyncGateway's duplicate __public_port field. Create
accessor since using __<var> means the attributes are not accessible
from superclasses.
- replace assertion about exception with pytest.raises to ensure that it
  raises the exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants