You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
Something to consider to avoid code repetition: creating an
AuthenticatedTestClient
class in another module that extendsTestClient
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)
The text was updated successfully, but these errors were encountered: