Closed j-maas closed 7 years ago
Can you please explain how you get 161 tests?
There's 103 tests in the package which run fine on my pc.
(ENV) ***\ptbtestsuite>nosetests
***\env\lib\site-packages\urllib3\contrib\socks.py:37: DependencyWarning: SOCKS support in urllib3 requires the installation of optional dependencies: specifically, PySocks. For more information, see https://urllib3.readthe
docs.io/en/latest/contrib.html#socks-proxies
DependencyWarning
.................................................................................................***\ptbtestsuite\ptbtest\mockbot.py:730: UserWarning: edit_message is deprecated, use disable_edit_message instead
'edit_message is deprecated, use disable_edit_message instead')
......
----------------------------------------------------------------------
Ran 103 tests in 2.410s
OK
On a different note, I'm running against the latest master of python-telegram-bot (since the pypi version is terrible atm). I have updated the requirements(-dev) files. this will negate the error you showed.
Lastly the failed test on the readme PR is due to sometimes travis failing a test because stopping the updater takes to long, if you rerun them they usually succeed.
If I run nosetests
in the console, I get indeed 103 tests. Still, 58 of those fail, most apparently still with the TypeError: int() argument must be a string...
.
I will investigate this further, after I'll return from vacation. ;)
So I've finally got the idea of checking out old commits and seeing, if the error was introduced somwhere along the way.
I found out that it works totally fine until commit 374a46d734e073cd945bf04534fb0c3eac452638 ('Delete local deps') introduces this behaviour. I am still quite new to Python, so I do not quite understand what changed there that could have caused this issue, but I will try to investigate.
I know what happened, in that commit I removed the local copy of the telegram package from the repository because changes were pulled into the master.
Please run pip install -r requirements-dev -U
to install the latest master version of python-telegram-bot.
This complete and finish all tests
So I just had to reload the requirements-dev.txt
properly. :+1:
On a related note, would it make sense to fix the version of the dependencies? Our IDEs should notice if there is a newer version (I hope so at least) and this would make checking out old revisions easier, I think.
When trying to run the tests on my machine, of the 161 tests 102 are run and 59 of those fail. The error that pops up the most is
The test case
test_Usergenerator
/TestUserGenerator
is shown as running in PyCharm. Its output isThis is not picked up by PyCharm, the bar says 102 of 161 tests run. And this test does not stop running.
I am using PyCharm 2017.1 on Windows 10 and Python 3.6.1 in a virtualenv with only the
requirements-dev.txt
installed. The only packages not up-to-date in the virtualenv aresetuptools
(v28.8.0.),coverage
(v4.4b1) andflake8
(v3.3.0dev0).In the PyCharm settings, I set the test runner to be
Nosetests
.Something tangential: My PR, where I fixed a link in the readme.MD did not pass the CI tests.