Skip to content

Conversation

@aaronjae22
Copy link
Collaborator

@aaronjae22 aaronjae22 commented Aug 10, 2025

Depends on #162 . Will retarget to main after PR1 merges.

This PR is stacked on #162 (docs/update-oauth-documentation). Please review #162 first. The base of this PR is set to docs/update-oauth-documentation so the diff only shows commits from iterate/feedback-from-pr-161. After #162 merges, I will retarget the PR to main.


This PR iterates over feedback from PR #161.

  • Replaced pytest fixtures with factory_boy factories (ApplicationFactory, AccessTokenFactory)
  • Added helper methods to eliminate repetitive test assertions
  • Converted malformed header test from loop to pytest parametrization
  • Added constants for OAuth scopes to avoid magic strings
  • Test are now cleaner and easier to maintain

Close #168

@aaronjae22 aaronjae22 requested a review from lisad August 10, 2025 02:25
@aaronjae22 aaronjae22 self-assigned this Aug 10, 2025
assert field not in data

# Helper to verify LOLA fields are present and properly formatted
def assert_has_lola_fields(self, data, actor):
Copy link
Member

Choose a reason for hiding this comment

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

I like these helper assert functions

@aaronjae22 aaronjae22 force-pushed the iterate/feedback-from-pr-161 branch from 4b07de8 to a826684 Compare August 10, 2025 23:36
@aaronjae22 aaronjae22 changed the base branch from docs/update-oauth-documentation to main August 10, 2025 23:43
@aaronjae22 aaronjae22 merged commit 7ca58c1 into main Aug 11, 2025
1 check passed
@aaronjae22
Copy link
Collaborator Author

FYI: the latest activities in this PR (force-pushed and changed the base branch) worked as expected. I tried to use a new approach for working with dependent branches. Each time I'll be working on a big feature I will be able to make small PRs while I continue working on the next one and all of this while keeping the already open PRs and new ones in sync with changes requested during review.

@aaronjae22 aaronjae22 deleted the iterate/feedback-from-pr-161 branch August 11, 2025 00:12
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.

Iteration over feedback from PR #161

2 participants