Re: [Tutor] Best way to get root project directory in module search path

2017-08-28 Thread Cameron Simpson
On 28Aug2017 20:39, boB Stepp wrote: On Sun, Aug 27, 2017 at 6:03 PM, Cameron Simpson wrote: from os.path import dirname It did not occur to me to import something from os.path to use sys.path! It is pretty normal to import specific names from

Re: [Tutor] easygui

2017-08-28 Thread Alex Kleider
On 2017-08-27 07:18, Mats Wichmann wrote: or perhaps less intuitively, stick a first line in it to tell the system to have Python run it, so your script looks like this (there are possible variants on that magic first line, but this one should work whichever your platform is, as long as it

Re: [Tutor] Best way to get root project directory in module search path

2017-08-28 Thread boB Stepp
On Sun, Aug 27, 2017 at 6:03 PM, Cameron Simpson wrote: > On 27Aug2017 14:27, boB Stepp wrote: >> >> On Sun, Aug 27, 2017 at 2:13 AM, Cameron Simpson wrote: >>> >>> On 26Aug2017 21:27, boB Stepp wrote: >>> The

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread Anubhav Yadav
> Here is the compatibility list of plugins: > http://plugincompat.herokuapp.com/ > > here is the rabbitmq plugin: > https://pypi.python.org/pypi/pytest-rabbitmq > > > and here is one for databases: >

Re: [Tutor] easygui

2017-08-28 Thread eric
On 08/26/2017 07:07 PM, George Sconyers via Tutor wrote: Hello all. Need some help with easygui which my son is trying to run for a book he is working in. Using Python 2.7 we downloaded easygui and put it in an executable path. Code is:import easyguieasygui.msgbox("Hello there") No popup

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread George Fischhof
2017-08-28 9:43 GMT+02:00 Anubhav Yadav : > Hi George, > > > And pytest has more than 200 plugins to make it easier to test things. > As I remember it has mongo plugin as we well > > > > Thank you for your comments. > > I have been using `py.test` for only two reasons. > >

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread George Fischhof
2017. aug. 28. de. 2:15 ezt írta ("Anubhav Yadav" ): Hello. I am a python developer and I write a lot of python code everyday. I try to do as much unit testing as possible. But I want to be better at it, I want to write more test cases, specially that rely on database

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread George Fischhof
2017. aug. 28. 2:15 ezt írta ("Anubhav Yadav" ): Hello. I am a python developer and I write a lot of python code everyday. I try to do as much unit testing as possible. But I want to be better at it, I want to write more test cases, specially that rely on database

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread Anubhav Yadav
Hi George, > And pytest has more than 200 plugins to make it easier to test things. As I > remember it has mongo plugin as we well > Thank you for your comments. I have been using `py.test` for only two reasons. 1. To run my tests places in the `/tests` directory. 2. To run them whenever