GithubHelp home page GithubHelp logo

Comments (2)

benji011 avatar benji011 commented on May 31, 2024

Hi @TooAngel I'm kinda curious about this one. I'm trying to understand which tests should be mocked. I looked here but it looks like the tests are already covered by those patch decorators.

Please help me understand, which tests should be mocked/altered?

from worlddriven.

TooAngel avatar TooAngel commented on May 31, 2024

Cool. I didn't look too much into it yet. I usually have a MongoDB server running on my machine. Yesterday I stopped it for reasons and recognized that the tests got stuck on the tests/test_frontend.py test already.

I would guess the issue lies in the fact that the mongo connection is already initiated in src/server.py, maybe we can mock this before the server.py is loaded.

Easiest to test, checkout the repository, run the tests without a MongoDB server listening on localhost:27017 and you should see the issue.

Does that help?

from worlddriven.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.