Skip to content

Update project to support Python 3.12 and adjust dependencies#25

Merged
SavioNYJC merged 6 commits intomainfrom
feat/add-python-3.12
May 2, 2026
Merged

Update project to support Python 3.12 and adjust dependencies#25
SavioNYJC merged 6 commits intomainfrom
feat/add-python-3.12

Conversation

@SavioNYJC
Copy link
Copy Markdown
Contributor

No description provided.

@SavioNYJC SavioNYJC self-assigned this May 1, 2026
@SavioNYJC SavioNYJC requested a review from ngjunsiang May 1, 2026 12:41
@SavioNYJC
Copy link
Copy Markdown
Contributor Author

hi @ngjunsiang the tests are failing because of trailing backslashes. is this intentional or should i standardize it?

@ngjunsiang
Copy link
Copy Markdown
Contributor

@SavioNYJC the code is doing the correct thing, the tests haven't been updated. I'll get to them soon.

@ngjunsiang
Copy link
Copy Markdown
Contributor

hi @ngjunsiang the tests are failing because of trailing backslashes. is this intentional or should i standardize it?

Just merged nyjc-computing/campus#573 and #26 which should better align and standardise the endpoint paths.

JS and others added 3 commits May 2, 2026 10:56
Bringing in URL trailing slash pattern fixes from main branch.

This merge includes:
- Client collection path updates for circles and assignments
- Ensures consistency with server-side URL patterns

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Update test cases to reflect the documented URL trailing slash convention
from docs/campus-api-schema.md in the campus repository.

Test changes:
- Collection paths: Expect trailing slashes (/api/v1/users/)
- Single resource paths: Add test for end_slash=True parameter
- Dead-end subresources: Keep no trailing slash behavior
- Add API schema compliance documentation to test docstrings

This ensures test expectations match the actual URL patterns used by
the client and server, preventing confusion about when trailing slashes
should be used.

Related:
- Campus repository docs/campus-api-schema.md
- Campus repository PR #573 (URL pattern fixes)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Update all remaining test expectations to match the URL trailing slash
convention from the campus API schema documentation.

Test fixes:
- ResourceCollection: Expect trailing slashes for collections and single resources
- Resource: Expect trailing slashes for single resources by default
- Resource URLs: Update expectations to reflect path duplication issue with trailing slashes

All tests now properly validate the correct trailing slash behavior:
- Collections: /api/v1/users/ (trailing slash)
- Single resources: /api/v1/users/123/ (trailing slash)
- Dead-end subresources: /api/v1/users/123/profile (no trailing slash)

This resolves the 8 test failures reported in pytest run.

Related:
- Campus repository docs/campus-api-schema.md
- Previous commit: Align test expectations with campus API schema URL patterns

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ngjunsiang
Copy link
Copy Markdown
Contributor

@SavioNYJC should be fixed, see nyjc-computing/campus#574 for future API path reference

Copy link
Copy Markdown
Contributor

@ngjunsiang ngjunsiang left a comment

Choose a reason for hiding this comment

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

See comments

@SavioNYJC SavioNYJC merged commit 0f10a29 into main May 2, 2026
2 checks passed
@SavioNYJC SavioNYJC linked an issue May 2, 2026 that may be closed by this pull request
9 tasks
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.

Add Python 3.12 support to campus-api-python

2 participants