Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an AuthenticatedTestClient class in another module that extends TestClient #961

Open
udgover opened this issue Dec 28, 2023 · 0 comments
Assignees
Labels
code health Changes about syntax, code health, etc.

Comments

@udgover
Copy link
Collaborator

udgover commented Dec 28, 2023

Something to consider to avoid code repetition: creating an AuthenticatedTestClient class in another module that extends TestClient and in the init creates the user and fetches the token, and sets headers, and importing this AuthenticatedTestClient in tests.

Originally posted by @tomchop in #960 (comment)

@udgover udgover changed the title Create an AuthenticatedTestClient class in another module that extends TestClient Create an AuthenticatedTestClient class in another module that extends TestClient Dec 28, 2023
@tomchop tomchop added the code health Changes about syntax, code health, etc. label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code health Changes about syntax, code health, etc.
Projects
None yet
Development

No branches or pull requests

2 participants