Giter Site home page Giter Site logo

Comments (7)

cuducos avatar cuducos commented on June 21, 2024

I don't know whether I have be running mongo while runing test.

Long story short, yes, you should ; )

The core error message says the app expects the MongoDB URL in a envvar (or .env): decouple.UndefinedValueError: MONGO_URL not found..

from perfil-politico.

amadeu01 avatar amadeu01 commented on June 21, 2024

It seems to be really silly a must have db setup just for run tests.
And, it should be explicitly written on the readme of the project that for running test we have to sepup the db.

from perfil-politico.

cuducos avatar cuducos commented on June 21, 2024

it should be explicitly written on the readme of the project that for running test we have to sepup the db.

Actually we have this line on the README.md: To run the API, you must copy the env-template to a .env file and add the MongoDB URL.

So if you follow the instructions you should not get the error you reported. Any ideas on how to make this line clearer?

from perfil-politico.

amadeu01 avatar amadeu01 commented on June 21, 2024

You could have one section dedicated to testing.
Like this /training-center/hades. You can look up for Rodando os testes com Docker.

So, you could have something like:

Running tests:

Requirements: having a MongoDB running locally....

from perfil-politico.

cuducos avatar cuducos commented on June 21, 2024

Requirements: having a MongoDB running locally

IMHO this is kinda a simplistic. We have a section for Settings so what about: “In order to run tests you need to fully configure your instance as describer in the Settings section” – do you think this would make the instructions clearer?

from perfil-politico.

amadeu01 avatar amadeu01 commented on June 21, 2024

do you think this would make the instructions clearer?

Yeah. Thanks for your time!

Sorry any bothering

from perfil-politico.

cuducos avatar cuducos commented on June 21, 2024

Sorry any bothering

Contributing is never bothering ; )

from perfil-politico.

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.