Skip to content

Added shared context for unauthenticated access#253

Merged
edimossilva merged 1 commit intoespoo-dev:mainfrom
lucasleandro1:test/add-shared-context-unauthenticated
Apr 5, 2025
Merged

Added shared context for unauthenticated access#253
edimossilva merged 1 commit intoespoo-dev:mainfrom
lucasleandro1:test/add-shared-context-unauthenticated

Conversation

@lucasleandro1
Copy link
Contributor

@lucasleandro1 lucasleandro1 commented Apr 1, 2025

This task introduces a 'shared context' for handling unauthenticated user requests in request tests. Instead of repeating the same authentication failure checks, we now reuse the shared context across multiple tests, for this was created shared_context 'when user is not authenticated'`.

fix #220

Copy link
Member

@edimossilva edimossilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual codebase has many places where the context you are creating can be reused.
You should apply it everywhere.

Copy link
Member

@edimossilva edimossilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Add PR description
  • Squash commits
  • Link PR to the issue that is being fixed
  • Add label refactor

…ts tests

test: add shared context for unauthenticated access

shared_context 'when user is not authenticated' added to some request tests

refactored tests using shared_context 'when user is not authenticated'

shared context 'when user is not authenticated' applied in all requests tests

shared context 'when user is not authenticated' applied in all requests tests

test: add shared context for unauthenticated access

shared_context 'when user is not authenticated' added to some request tests

refactored tests using shared_context 'when user is not authenticated'

shared context 'when user is not authenticated' applied in all requests tests
@lucasleandro1 lucasleandro1 force-pushed the test/add-shared-context-unauthenticated branch from 0e42196 to f35d90e Compare April 4, 2025 20:18
@edimossilva edimossilva merged commit db8a218 into espoo-dev:main Apr 5, 2025
3 checks passed
@lucasleandro1 lucasleandro1 changed the title test: add shared context for unauthenticated access Added shared context for unauthenticated access May 28, 2025
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.

Create shared context to "when user is not authenticated"

2 participants