Questions tagged [pytest-qt]

pytest-qt is a pytest plugin that allows programmers to write tests for PySide, PySide2 and PyQt applications.

35 questions
0
votes
1 answer

How to check response to a signal

In a subclass of QFileDialog there is a method, on_dir_entered, which should be called when the QFileDialog's signal directoryEntered fires, thus: self.directoryEntered.connect(self.on_dir_entered) The problem is that a signal takes a…
mike rodent
  • 14,126
  • 11
  • 103
  • 157
0
votes
1 answer

Why am I getting this "wrapped C/C++ object ... has been deleted" error with pytest-qt?

Please note: this is on W10. This may well be significant. Python: 3.9.4 pytest: 6.2.5 pytest-qt: 4.0.2 I've been using pytest-qt for about a week now to start developing a PyQt5 app. There have been a few baffling problems but none as baffling as…
mike rodent
  • 14,126
  • 11
  • 103
  • 157
0
votes
1 answer

`pytestqt.mouseMove` to menubar menu widget moves to wrong place

I am trying to move my mouse to the File "button" on the menubar. In my program, pytestqt.mouseMove is moving the mouse to the wrong place (it's currently clicking near the window title). Setup OS: Windows 10 Professional x64-bit, Build…
adam.hendry
  • 4,458
  • 5
  • 24
  • 51
0
votes
1 answer

Running CI tests with PyQT

I am setting up a CI Bitbucket pipeline for my team. We are using pytest and pytest-qt to test our software. The tests run locally without any issue, but the build fails using pipeline. Here is the pipeline yml: image: python:3.9 pipelines: …
0
votes
1 answer

Python 3.8 pytest-qt ModuleNotFoundError: No module named 'PyQt4'

I have created my project on Linux mint 19 with python 3.6 installed. I used pytest in conjunction with pytest-qt to test my app which is a PyQt5 program. Then, I've updated to Linux mint 20. However python 3.8 is installed there instead of 3.6. I…
acmpo6ou
  • 840
  • 1
  • 12
  • 21
1 2
3