Re: [python-uk] Issue with unit tests in IntelliJ IDEA

2015-07-15 Thread Jonathan Hartley
I found this code, which looks relevant. Something to do with intelliJ (is that an IDE?) and PyCharm (which even I know is an IDE) and running tests, which expects a "true" parameter in the 'utrunner.py' invocation: https://github.com/JetBrains/intellij-community/blob/master/python/helpers/pych

Re: [python-uk] Issue with unit tests in IntelliJ IDEA

2015-07-14 Thread Tom Viner
Hi David, A random Google makes it look like argparse is involved: https://www.google.co.uk/search?q=error%3A+unrecognized+arguments Are you using argparse? Maybe that's enough to solve it, but if not, if you can show us the argparse parts of your code that would be useful. Cheers, Tom On 14 Ju

Re: [python-uk] Issue with unit tests in IntelliJ IDEA

2015-07-14 Thread Dave Kirby
It looks like you have a command line argument "true" when you invoke the test - is that supposed to be there? It is not an argument that unittest.main would expect. On 14 July 2015 at 11:33, David Szervanszky wrote: > Hi, > > I’ve been working on contributing to an open source project and have

Re: [python-uk] Issue with unit tests in IntelliJ IDEA

2015-07-14 Thread René Dudfield
There's also a testing in python list. http://lists.idyll.org/listinfo/testing-in-python On Tue, Jul 14, 2015 at 1:57 PM, Tim Golden wrote: > On 14/07/2015 11:33, David Szervanszky wrote: > > Hi, > > > > I’ve been working on contributing to an open source project and have > > gotten to the stag

Re: [python-uk] Issue with unit tests in IntelliJ IDEA

2015-07-14 Thread Tim Golden
On 14/07/2015 11:33, David Szervanszky wrote: > Hi, > > I’ve been working on contributing to an open source project and have > gotten to the stage where I’m writing my tests but I’ve run into a bit > of an issue around a unit test I’ve written. Namely that the unit test > won’t run and I receive t

[python-uk] Issue with unit tests in IntelliJ IDEA

2015-07-14 Thread David Szervanszky
Hi, I’ve been working on contributing to an open source project and have gotten to the stage where I’m writing my tests but I’ve run into a bit of an issue around a unit test I’ve written. Namely that the unit test won’t run and I receive the following error: utrunner.py: error: unrecognized a