Skip to main content

All Questions

Tagged with
0 votes
0 answers
20 views

Tox tests working behaviour for changes in basepython field is a confusion

I have tox file which have a code like this [tox] envlist = py38,py39,py310,pep8 minversion = 3.1.0 skipsdist = False [testenv] basepython = python3 Earlier it was working like this, ...
S_Anuj's user avatar
  • 434
0 votes
0 answers
55 views

my tox setenv PYTHONPATH is not working but sh -c to forcefully set PYTHONPATH works

[testenv:migrations] setenv = PYTHONPATH = {toxinidir}:{toxinidir}/src:{toxinidir}/tests deps = -r requirements/py310-django42.txt commands = echo PYTHONPATH={env:PYTHONPATH:} python ...
Kim Stacks's user avatar
  • 10.6k
1 vote
0 answers
292 views

Unable to find pyenv python interpreter by tox

I have a simple tox.ini as below [tox] min_version = 4.0 env_list = py{37,38,39,310}-drf{314} [testenv] envdir = {toxworkdir}/venvs/{envname} [testenv:py{37,38,39,310}-drf{314}] commands = ...
JPG's user avatar
  • 86.9k
0 votes
1 answer
238 views

Tox not finding submodules

I am having some issues running pytest through tox due to it not recognising submodules. The error that keeps coming up is ModuleNotFoundError: No module named 'app.api' I'm not really sure how to fix ...
rick_grimes's user avatar
1 vote
1 answer
436 views

ModuleNotFoundError on GitHub tox test run

running tests on GitHub and getting the error message below. Weirdly, this error did not occur with the same setup before. Run python -m tox -- --junit-xml pytest.xml py38: install_deps> python -I -...
royk's user avatar
  • 95
-2 votes
1 answer
1k views

How to configure tox to access environment variables? [closed]

I am using tox to run pytest. Pytest runs test cases that tests API endpoints that required crednetials. I do not want to save my credentials in the code and set is as an environment variable in ...
Baenka's user avatar
  • 346
0 votes
2 answers
2k views

In tox testenv "ModuleNotFoundError: No module named 'pandas" error comes whenever pandas is added to deps

After I implemented my test, which is using pandas, my build is failing with "ModuleNotFoundError: No module named 'pandas'" error, however, I added pandas to the testenv deps and in the ...
AME's user avatar
  • 355
1 vote
1 answer
472 views

Is it correct to assume that my package is compatible with a version B, if it is compatible with versions A and C of Python/another packages?

I have just created my own package and would like to publish it on GitHub and PyPi. I am currently checking the dependencies of the package using the tox library. My package, for example, uses the ...
pandas_as_pd's user avatar
0 votes
1 answer
2k views

How does tox install my poetry project on its virtual environment?

I'm using tox with poetry with pyenv and I'm getting quite confused. I'm using pyenv local 3.6.9 3.7.10 to set several python versions in my myprojectroot folder. Above that, I use poetry to manage ...
emonier's user avatar
  • 455
1 vote
1 answer
1k views

pytest not acknowledging PASSED dependency in base class results in SKIPPED tests in derived class

I have this little project where I use pytest and pytest-dependency with tox to develop integration tests on some code. Until now I used one base class (BTestClass) with some common tests in the root ...
DaLynX's user avatar
  • 338
0 votes
2 answers
3k views

Coverage not finding tests

Coverage doesn't seem to be picking up the "coverage" of the tests in the directory tests. The source files are in a directory src. (File names have been changed to protect the innocent.) ...
Chris McCullough's user avatar
0 votes
1 answer
228 views

appveyor matrix vs tox matrix

I've found many references to use tox and a CI server, like appveyor for Python testing. However, the dependency matrices have confused me. It seems redundant for me and I don't know why to use both, ...
betontalpfa's user avatar
  • 3,692
1 vote
2 answers
2k views

Running tox with different environment variable config

I want to run my test with different values of environment variables. I have this tox.ini, which doesn't do what I want: # tox.ini [tox] envlist = py37-{foo,bar} [testenv] description = Tests ...
betontalpfa's user avatar
  • 3,692
13 votes
3 answers
6k views

Tox fails because setup.py can't find the requirements.txt

I have added tox to my project and my tox.ini is very simple: [tox] envlist = py37 [testenv] deps = -r{toxinidir}/requirements_test.txt commands = pytest -v But when I run tox, I get the ...
MLow's user avatar
  • 739
3 votes
1 answer
996 views

Django + tox: Apps aren't loaded yet

I'm migrating a Django project to use Tox and pytest. I'm getting the following when running tox. _________________________________________ ERROR collecting fixtureless/tests/test_django_project/...
Rico's user avatar
  • 5,972

15 30 50 per page