GispoCoding / pytest-qgis

A pytest plugin for testing QGIS python plugins
GNU General Public License v2.0
29 stars 8 forks source link

Added a newProjectCreated signal to QgisInterface mock class #21

Closed JaumeFigueras closed 2 years ago

JaumeFigueras commented 2 years ago

The QgisInterface mock class lacks of a new project signal, so the signal is created and when the newProject method is called the signal is emitted to connected slots. Again, as a Newby in these issues, my previous commits of a previous accepted PR appear. I don't know why. Fortunately it says 1 file changed, so I'm creating the PR.

codecov-commenter commented 2 years ago

Codecov Report

Merging #21 (f5f1608) into main (97d7803) will decrease coverage by 0.01%. The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   54.11%   54.09%   -0.02%     
==========================================
  Files           7        7              
  Lines         462      464       +2     
==========================================
+ Hits          250      251       +1     
- Misses        212      213       +1     
Flag Coverage Δ
pytest 54.09% <50.00%> (-0.02%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/pytest_qgis/qgis_interface.py 41.66% <50.00%> (+0.17%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 97d7803...f5f1608. Read the comment docs.