From 83f52b17b1238746c3b48fd2aa609083be37b315 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sat, 4 Jul 2026 17:27:56 +0530 Subject: [PATCH] test(native-connector): add reddit comment fixture --- .../tests/unit/scrapers/reddit/fixtures/sample_comment.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 surfsense_backend/tests/unit/scrapers/reddit/fixtures/sample_comment.json diff --git a/surfsense_backend/tests/unit/scrapers/reddit/fixtures/sample_comment.json b/surfsense_backend/tests/unit/scrapers/reddit/fixtures/sample_comment.json new file mode 100644 index 000000000..e8d1d60aa --- /dev/null +++ b/surfsense_backend/tests/unit/scrapers/reddit/fixtures/sample_comment.json @@ -0,0 +1 @@ +{"kind": "t1", "data": {"subreddit_id": "t5_2qh0y", "approved_at_utc": null, "author_is_blocked": false, "comment_type": null, "awarders": [], "mod_reason_by": null, "banned_by": null, "author_flair_type": "text", "total_awards_received": 0, "subreddit": "Python", "author_flair_template_id": null, "likes": null, "replies": "", "user_reports": [], "saved": false, "id": "oprc6qa", "banned_at_utc": null, "mod_reason_title": null, "gilded": 0, "archived": false, "collapsed_reason_code": null, "no_follow": true, "author": "hannah_G_", "can_mod_post": false, "created_utc": 1780597457.0, "send_replies": true, "parent_id": "t3_1tws1w7", "score": 4, "author_fullname": "t2_gjk10lou", "approved_by": null, "mod_note": null, "all_awardings": [], "collapsed": false, "body": "**db-git**\u00a0\\- keep your local database in sync with your git branches.\n\n# What My Project Does\n\n`db-git`\u00a0is a developer tool for projects where database state follows code changes: schema migrations, seed data, experimental feature work, and branch switching during reviews. It installs git\u00a0`post-checkout`\u00a0hook and keeps your local database aligned with the branch you are working on.\n\n* Two workflows:\n * `shared`: one database, saved and restored per branch\n * `per-branch`: one database per branch\n* PostgreSQL support today, with plans for more database backends\n* Two PostgreSQL snapshot strategies:\n * `template`: fast database clones using\u00a0`CREATE DATABASE ... TEMPLATE`\n * `pgdump`: portable snapshots using\u00a0`pg_dump`\u00a0and\u00a0`pg_restore`\n\n# Target Audience\n\nBackend and full-stack developers who run databases locally and switch branches often, especially on projects where migrations or seed data diverge between branches. It's a local development tool.\n\n# Comparison\n\nThe main things that set\u00a0`db-git`\u00a0apart from existing tools are:\n\n1. It lets you choose per project,\u00a0`shared`\u00a0vs\u00a0`per-branch`, and\u00a0`template`\u00a0vs\u00a0`pgdump`.\n2. It ties database state directly to checkout.\n3. It is not tied to a specific database engine. PostgreSQL is the first supported backend, but the design isn't Postgres-specific, and more databases are planned.\n\n`uv tool install db-git`\n\nGitHub:\u00a0[https://github.com/earthcomfy/db-git](https://github.com/earthcomfy/db-git)\n\nAny feedback is very welcome!", "edited": false, "top_awarded_type": null, "author_flair_css_class": null, "name": "t1_oprc6qa", "is_submitter": false, "downs": 0, "author_flair_richtext": [], "author_patreon_flair": false, "body_html": "
db-git\u00a0- keep your local database in sync with your git branches.
\n\ndb-git\u00a0is a developer tool for projects where database state follows code changes: schema migrations, seed data, experimental feature work, and branch switching during reviews. It installs git\u00a0post-checkout\u00a0hook and keeps your local database aligned with the branch you are working on.
shared: one database, saved and restored per branchper-branch: one database per branchtemplate: fast database clones using\u00a0CREATE DATABASE ... TEMPLATEpgdump: portable snapshots using\u00a0pg_dump\u00a0and\u00a0pg_restoreBackend and full-stack developers who run databases locally and switch branches often, especially on projects where migrations or seed data diverge between branches. It's a local development tool.
\n\nThe main things that set\u00a0db-git\u00a0apart from existing tools are:
shared\u00a0vs\u00a0per-branch, and\u00a0template\u00a0vs\u00a0pgdump.uv tool install db-git
GitHub:\u00a0https://github.com/earthcomfy/db-git
\n\nAny feedback is very welcome!
\n