Questions tagged [tox]

tox is a generic virtualenv management and test running tool.

tox is a generic virtualenv management and test command line tool you can use for:

  • checking your package installs correctly with different Python versions and interpreters running your tests in each of the environments,
  • configuring your test tool of choice
  • acting as a frontend to Continuous Integration servers, greatly reducing boilerplate and merging CI and shell-based testing

Resources:

529 questions
0
votes
0 answers

How to test with tox when pycurl is a requirement, under Windows OS?

I have a project that I would like to test with tox. E.g. test the installation of the project with different python versions. I use tox for this. Under windows, I fail to do so, because of the following: tox creates a new venv for each target (e.g.…
nagylzs
  • 3,954
  • 6
  • 39
  • 70
0
votes
1 answer

Installing pandas with tox for py26

There is an issue when using tox to run pytest for my package using py26 as one of the envs (global env is py3.6, py26 env is py2.6.9 installed via pyenv) tox.ini file: [tox] envlist = py26,py27,py36 [testenv] deps= pytest PyPDT py26:…
Brian Pollack
  • 198
  • 3
  • 12
0
votes
2 answers

Understanding Non-Default Python Configuration in tox.ini

I'm trying to learn more about the details of configuring tox.ini files. In one of the files for the Jupyter project and in this demo project, rather than using the default python environments, they define new environments in the…
0
votes
1 answer

(Python virtual test environment) doc openstack

murano install Hello I'm trying to deploy Murano (Application Catalog ...) on the open source cloud solution: Openstack I have a problem with the use of tox. With each use of this tool I have the same error: ERROR: could not install deps [-r / home…
yes24
  • 1
  • 1
0
votes
0 answers

Tox causing errors with flask render_template (Python)

I have ran into an issue with rendering templates. Basically flask can find the template just fine, but tox cannot when ran: TemplateNotFound: folder_a/file_a.html I am trying to unit test a view that renders a…
user1431118
  • 43
  • 1
  • 4
0
votes
2 answers

How to get tox to respect system version when running tests?

I have some code where the control logic changes based on python2 vs python3. I am also using tox to test this, when I realized: tox doesn't use the right sys.version_info.major for tests, it uses whatever version of python you used when you run…
enderland
  • 13,825
  • 17
  • 98
  • 152
0
votes
1 answer

Test Case passed but coverage report showing 0% with --cover-inclusive argument to nosetests command and tox

I am executing test cases with tox with nosetests and coverage. I am using the command as "nosetests -v --with-xunit --xunit-file=nosetests.xml --cover-inclusive" without --cover-inclusive argument coverage report shows actual coverage percentage.…
0
votes
1 answer

Tox automatically installing unwanted package

I am trying to get the coverage of my tests using TOX and Travis CI. Unfortunately when creating the virtual envs, TOX install my package from PIP, thus not testing the coverage of the actual source code... How can I prevnt that to happen. I guess…
millerf
  • 686
  • 1
  • 8
  • 16
0
votes
1 answer

Can I setup project interpreter from .tox folder

The 'tox' interpreter is in the '.tox' folder, after executing command tox. Are there any ways to set that interpreter to the PyCharm?
Vadim Kovrizhkin
  • 1,575
  • 4
  • 16
  • 27
0
votes
2 answers

Where is tox/pip looking finding the pypi repo urls?

When I build my python project, tox is taking a really long time to set up the environment. I've traced the slowness to the fact that when it's trying to up the environment in .tox, it's trying to access an old pypi repo that my company has since…
Seth
  • 5,596
  • 8
  • 42
  • 56
0
votes
1 answer

Running Xvfb from tox

I have some code that uses gtk so unless there is an active DISPLAY, the code raises an RuntimeError: could not open display… This happens when I run tox. Is there a way to run a Xvfb server from within tox? I did try adding /usr/bin/Xvfb :99…
Sardathrion - against SE abuse
  • 17,269
  • 27
  • 101
  • 156
0
votes
1 answer

How do the arguments are being passed to test functions in tox/py.test?

I'm learning to write tests with tox. How do the arguments are being passed to test functions in tox/py.test? For example in test_simple_backup_generation from tests/test_backup_cmd.py of django-backup extension there are three arguments tmpdir,…
0
votes
1 answer

Can tkinter work with tox (on windows)?

I know that tkinter has issues working with virtual envs due to the binaries not being copied and that there are workarounds if I'm just using virtual envs, but what about the autogenerated virtual envs generated by tox? Is there any way to use…
Matt_JD
  • 566
  • 6
  • 16
0
votes
1 answer

Inconsistent results with Travis CI and tox

I have set up continuous integration for my open source project at Travis. tox seems to be having some problems with quotes in the commands, so I set up a temporary branch for debugging the problem. At this point I am encountering a very strange…
Brecht Machiels
  • 3,181
  • 3
  • 25
  • 38
0
votes
0 answers

Environmental variables string value getting mangled on Windows

I'm trying to run Python tests with Tox on Windows with environmental variables like this: set APP=c:\path\to\app\n-starting-folder\app.apk & tox -- report.xml tests/someTest.py And in the setUp() method i retrieve the values from environmental…
Kaarel Purde
  • 1,255
  • 4
  • 18
  • 38