TooAngel / TooAngel/worlddriven

Mock mongodb backend in the test

Open
#176 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted
Dominant language
JavaScript
Stars
18
Forks
15
Avg merge
8d 14h
Merged PRs (30d)
5

Description

Currently, the python tests are trying to connect to the MongoDB backend. AFAIK the tests don't use the backend and they shouldn't.
For faster and easier running of the tests, the MongoDB backend needs to be completely mocked.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Python test entry points and the MongoDB connection setup, then run the test suite to reproduce the unwanted backend connection. Done means the tests use a complete MongoDB mock, no real backend connection is attempted, and the suite passes without requiring MongoDB.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, python
Domain
databases, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.