Python Forum
pytest binary issue and pycharm issue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pytest binary issue and pycharm issue
#1
Hello,
I am working on unix and using:
python/3.7.2/rh60_64
pycharm/2018.1.4/rh60_64

I have just installed pytest-5.4.2 and made it available though PYTHONPATH variable.
Through a test class on PyCharm I can, it seems sucessfully import pytest and for example use pytest.global_testName = ""

First, I do not have the py.tets binary in my unix environement, how to add it ? Then I have an issue within PyCharm, as described below.

Previoulsy I was using unitest as test runner, I would like to switch to py.test.
I tried to update PyCHarm settings and Run configurations as follow, without any success:
File/Settings/Tools/Python Integrated tools, I specified as "Defaut test runner" py.test, then OK.
PyCharm display a warning: No pytest runner found in selected interpreted
then:
Run/EditConfigurations/Defaults/Python tests/ I select py.test with "Custom" Target, then OK.

When I go to the testClass I have implemented, on the left side of the editor window, I can see "run py.test for ..." I execute that and the console simply displays, and it does not launch the test:

/sw/freetools/python/3.7.2/rh60_64/bin/python3.7 /prj/mms_nvm/cad_prj/python/users/paolipie/python/workdev/tests/com_st_envm_envmUtils/test_envmUtils.py

Process finished with exit code 0


I precise I cnanot use the pip installer, I have to download a python release package from windows then copy it into unix.

thanks a lot for any help,
Pierre
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Commas issue in variable ddahlman 6 439 Apr-05-2024, 03:45 PM
Last Post: deanhystad
Bug argparse io issue pyDream 8 656 Apr-02-2024, 12:42 PM
Last Post: pyDream
  Issue with uninstalling Python that is driving me crazy traxus 0 224 Mar-30-2024, 04:37 PM
Last Post: traxus
  Puzzling import issue that I have no idea how to solvr starseeker 3 520 Feb-21-2024, 05:07 PM
Last Post: deanhystad
  List Comprehension Issue johnywhy 5 542 Jan-14-2024, 07:58 AM
Last Post: Pedroski55
  issue in using regex akbarza 4 575 Nov-14-2023, 10:00 AM
Last Post: buran
  openpyxl issue - How to reset sheet.ins_row to the real last row ... ejwjohn 6 784 Nov-08-2023, 01:19 PM
Last Post: ejwjohn
  Facing issue in python regex newline match Shr 6 1,304 Oct-25-2023, 09:42 AM
Last Post: Shr
  [split] Issue installing selenium Akshat_Vashisht 1 548 Oct-18-2023, 02:08 PM
Last Post: Larz60+
  Python C Extension Module loading issue on Cygwin mesibo 0 660 Sep-22-2023, 05:41 AM
Last Post: mesibo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020