-
-
Notifications
You must be signed in to change notification settings - Fork 675
feat: add fixtures #2641
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
Merged
Merged
feat: add fixtures #2641
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ec4c80c
feat: add dev fixtures for sponsors and events
JacobCoffee 6d4a63a
Merge branch 'main' into bootstrap-sponsors-in-dev
JacobCoffee 22b84fe
Update fixtures/sponsors-admin.json
JacobCoffee 00d0d78
Update fixtures/sponsors-admin.json
JacobCoffee 11c92ea
fix: use --group for RTD docs dependency install
JacobCoffee cc7e441
fix: correct typos in sponsors fixture data
JacobCoffee 91c386c
Update fixtures/sponsors-admin.json
JacobCoffee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,151 @@ | ||
| [ | ||
| { | ||
| "model": "events.calendar", | ||
| "pk": 1, | ||
| "fields": { | ||
| "created": "2024-10-08T18:43:33.081Z", | ||
| "updated": "2024-10-08T18:43:33.123Z", | ||
| "creator": [ | ||
| "admin" | ||
| ], | ||
| "last_modified_by": null, | ||
| "url": null, | ||
| "rss": "http://python.org/downloads/feed.rss", | ||
| "embed": null, | ||
| "twitter": "https://x.com/ThePSF", | ||
|
JacobCoffee marked this conversation as resolved.
|
||
| "name": "python-events", | ||
| "slug": "python-events", | ||
| "description": "Example" | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.eventcategory", | ||
| "pk": 1, | ||
| "fields": { | ||
| "name": "test category", | ||
| "slug": "test-category", | ||
| "calendar": 1 | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.eventlocation", | ||
| "pk": 1, | ||
| "fields": { | ||
| "calendar": 1, | ||
| "name": "Location", | ||
| "address": "123 Python Way", | ||
| "url": null | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.event", | ||
| "pk": 1, | ||
| "fields": { | ||
| "created": "2024-10-08T18:45:00.226Z", | ||
| "updated": "2024-10-08T18:45:00.243Z", | ||
| "creator": [ | ||
| "admin" | ||
| ], | ||
| "last_modified_by": null, | ||
| "uid": null, | ||
| "title": "Example event", | ||
| "calendar": 1, | ||
| "description": "Example event", | ||
| "description_markup_type": "restructuredtext", | ||
| "venue": null, | ||
| "_description_rendered": "<p>Example event</p>\n", | ||
| "featured": true, | ||
| "categories": [ | ||
| 1 | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.event", | ||
| "pk": 2, | ||
| "fields": { | ||
| "created": "2024-10-08T18:45:16.377Z", | ||
| "updated": "2024-10-08T18:45:16.387Z", | ||
| "creator": [ | ||
| "admin" | ||
| ], | ||
| "last_modified_by": null, | ||
| "uid": null, | ||
| "title": "Example event 2", | ||
| "calendar": 1, | ||
| "description": "event", | ||
| "description_markup_type": "restructuredtext", | ||
| "venue": null, | ||
| "_description_rendered": "<p>event</p>\n", | ||
| "featured": false, | ||
| "categories": [ | ||
| 1 | ||
| ] | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.event", | ||
| "pk": 3, | ||
| "fields": { | ||
| "created": "2024-10-08T18:47:21.240Z", | ||
| "updated": "2024-10-08T18:47:21.249Z", | ||
| "creator": [ | ||
| "admin" | ||
| ], | ||
| "last_modified_by": null, | ||
| "uid": null, | ||
| "title": "Example event 3", | ||
| "calendar": 1, | ||
| "description": "event", | ||
| "description_markup_type": "restructuredtext", | ||
| "venue": null, | ||
| "_description_rendered": "<p>event</p>\n", | ||
| "featured": false, | ||
| "categories": [] | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.occurringrule", | ||
| "pk": 1, | ||
| "fields": { | ||
| "event": 1, | ||
| "dt_start": "2024-10-07T18:42:45Z", | ||
| "dt_end": "2030-10-08T18:42:45Z", | ||
| "all_day": true | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.occurringrule", | ||
| "pk": 2, | ||
| "fields": { | ||
| "event": 2, | ||
| "dt_start": "2020-10-08T18:45:00Z", | ||
| "dt_end": "2023-10-08T18:45:00Z", | ||
| "all_day": false | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.occurringrule", | ||
| "pk": 3, | ||
| "fields": { | ||
| "event": 3, | ||
| "dt_start": "2025-10-08T18:45:16Z", | ||
| "dt_end": "2025-10-31T18:45:16Z", | ||
| "all_day": false | ||
| } | ||
| }, | ||
| { | ||
| "model": "events.recurringrule", | ||
| "pk": 1, | ||
| "fields": { | ||
| "event": 3, | ||
| "begin": "2024-10-08T18:45:16Z", | ||
| "finish": "2024-10-09T18:45:16Z", | ||
| "duration_internal": "00:15:00", | ||
| "duration": "15 min", | ||
| "interval": 1, | ||
| "frequency": 3, | ||
| "all_day": false | ||
| } | ||
| } | ||
| ] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read the Docs’ Ubuntu 22.04 image may ship with an older pip that doesn’t support
pip install --group ..., which would make the docs build fail. Consider explicitly upgrading pip (and optionally setuptools/wheel) before this command, and/or pinningbuild.tools.pythonto 3.12 to matchrequires-python = ">=3.12"in pyproject.toml.