Linked Questions

0 votes
0 answers
565 views

I have a few pytest files (begins with "test_"), each one of them tests another part of the system Now I want to create one file which supposes to run all the tests together. I read here how ...
Dana Troushinsky's user avatar
0 votes
0 answers
50 views

When I used pycharm, there used to be this run option close to my function declarations which I used to run my tests. I opened my pycharm today and this option disappeared. It used to be like in this ...
Rafael Frade's user avatar
26 votes
5 answers
28k views

I'm new to pytest and am trying to write testing modules for my application. My directory structure is: broker/ broker/tests broker/tests/conftest.py broker/tests/test_db.py broker/db.py I want to ...
ChrisBogDog's user avatar
5 votes
2 answers
15k views

I recently switched my workstation and reinstalled all my environment on Fedora 25. When attempting to run any part of my project (I run PyTest tests) I always end up getting "Process finished with ...
Pavel Zagalsky's user avatar
1 vote
1 answer
3k views

I am running a pytest with Pycharm. It follows the fixture correctly when using ctrl+click. import pytest @pytest.fixture(scope="session") def bar(): return 1 def test_foo(bar): pass ...
Gulzar's user avatar
  • 28.8k
0 votes
2 answers
1k views

Code is the following: import pytest @pytest.mark.parametrize("x", [0, 1]) @pytest.mark.parametrize("y", [2, 3]) def test_foo(x, y): assert x > y But by running the test system gives: ...
Dober's user avatar
  • 1
1 vote
0 answers
774 views

I have an issue debugging python tests using pytest on IntelliJ IDE with the python plugin the tests can be run (they have the green arrow) and after running them they are executed correctly but I can'...
Stas Sorokin's user avatar
1 vote
1 answer
570 views

Currently for any test run, I have to keep adding the options --keepdb -v2 to the testrun configuration as below snapshot How to save this as default for next test run? p.s. The google search leads ...
Nam G VU's user avatar
  • 35.8k
0 votes
2 answers
354 views

I recently installed Pycharm on a fresh PC. Unfortunately something seems to be off with the installation. When I try to enter the debug console this isn't loading. E.g. for a very simple test case ...
Axel's user avatar
  • 1,455