Giter Site home page Giter Site logo

Comments (7)

scarlettlee avatar scarlettlee commented on June 1, 2024

I installed 'responses' to solve the problem

from google-maps-services-python.

domesticmouse avatar domesticmouse commented on June 1, 2024

Quick question, did you use tox to run the tests?

https://pypi.python.org/pypi/tox

from google-maps-services-python.

scarlettlee avatar scarlettlee commented on June 1, 2024

No, I used "pip". But there still are some packages I need to download and install myself, like "responses".

from google-maps-services-python.

domesticmouse avatar domesticmouse commented on June 1, 2024

The README.md, under building, mentions using tox to build and test the library. The testing dependencies are managed by tox via https://github.com/googlemaps/google-maps-services-python/blob/master/test_requirements.txt

Thanks!

from google-maps-services-python.

scarlettlee avatar scarlettlee commented on June 1, 2024

Sorry, I still can't get it. I'm rather confused about running the tests.

  1. this is a library for calling google map services with python. Am I right?
  2. I'm using windows 7. So I don't know how to run the tests by "$ tox" command. The only way I know to run a .py file is right click the file -> Edit with IDLE -> F5.
  3. I used "pip install -U googlemaps", "pip install tox" and "pip install [someOtherPackages]" to ensure no errors happen when running the tests like "test_client.py". In fact, errors still happen when I've finished the steps I mentioned.
    class ClientTest(_test.TestCase):
    AttributeError: 'module' object has no attribute 'TestCase'
    It messed me up!
  4. what does this mean in test_requirements.txt?
    nose
    responses==0.3
    BTW, what exactly could I see if running the tests successfully?

I would appreciate your help very much if you help me with those questions.

from google-maps-services-python.

domesticmouse avatar domesticmouse commented on June 1, 2024

Answering your questions:

  1. Yes, this is a library for accessing the Google Maps API Web Services from the Python programming language
  2. I can see how $ tox would be confusing for a Windows 7 user. $ tox means to run the tox program from the command line. The $ in question is a reference to the bash command line shell that is in common use on Linux and OSX computers.
  3. Yes, I can see how the errors you are seeing would be confusing. There is a introduction to Python commond line programming for Python in Python on Windows FAQ. This is but the first step in a long chain of learning.
  4. The test_requirements.txt file is a configuration for the tox build system. I suggest reading through this page on the tox automation project.

Programming is an art driven mainly by an unending desire to keep learning. I suggest you run up a Linux machine using either a virtual machine environment, or on a raspberry pi. Learning to master the bash command line will pay good dividends in a lifetime of programming.

from google-maps-services-python.

scarlettlee avatar scarlettlee commented on June 1, 2024

Thank you very much, domesticmouse!
I'll take your advice.

from google-maps-services-python.

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.