-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pytest, fixed tests, added tox, added mistune to dependencies #35
Conversation
What is usecase of |
When you try to open file without it, you get this traceback:
|
It seems to be dependency for pygments |
Ok, so from the traceback, pygments has some plugin capability, and it loads my IPython, and that loads mistune for markdown parsing??? ... this seems to be pygments bug. |
OK, i'll remove the mistune dependency. |
Removed |
Thanks! I have a look at this later on. |
@lunemec It is an optional dependency of IPython |
Initially I was going to write a disagreement with using pytest. I was surprised to find that flask and werkzeug, the projects I use at as an inspiration for my prior test suites, have both switched to py.test. pypa/warehouse and pypa/pip is using py.test too... https://www.youtube.com/watch?v=AiThU6JQbE8 I may trial with py.test a bit with a project of my own and report back |
Just converted a pretty large test suite from unittest to py.test. Some things that gave me pause initially:
Timeline of me switching opinions:
Things I fell in love with:
|
@lunemec can you rebase? |
Well, it is not that easy after 1 year. Now my git says: fatal: Needed a single revision which probably means someone did git push --force of this master branch. I may need to cherry-pick those commits for this to work. |
Rebased. |
@lunemec yea no problem. @jonathanslenders is this ok to put in ? I'd like to start adding tests |
@jonathanslenders can we get a slack setup for prompt-toolkit, pyvim, ptpython, pymux, etc? |
I rewrote the test from unittest to pytest and fixed broken tests. Also I added mistune to setup.py, added tox.ini for python's tox package for multiple python versions testing.
However, I suggest dropping support for Python 2.6 and 3.1 these are broken under tox.
Python2.6 has somehow broken virtualenv
Python3.1 has broken urllib ..
Maybe these can be fixed, but I think almost nobody uses these versions of python.