Skip to content

pytest plugin? #3

@The-Compiler

Description

@The-Compiler

I'd like to use PyQt5_modeltest in my project and integrate it in its testsuite which uses py.test to run its tests.

Since this might also be useful for others, I can think of the following possibilites:

  • I just copy the code and adjust it to be a pytest fixture (i.e. available for tests). Easiest for me, but then we have two code bases.
  • I depend on this for my tests and write some code so it's usable via pytest - this would mean a release on PyPI would be appreciated. This is the approach I prefer currently, as I don't want to put too much time into this.
  • Adding a pytest plugin to this repository, adjusting modeltest.py as needed (but making sure it still works standalone) and releasing the plugin on PyPI as pytest-qt-modeltest or so.
  • Adding the code/functionality to pytest-qt if @nicoddemus agrees - I guess external dependencies are rather bad there - so it would mean copying the (adjusted) code. It also probably should be PyQt4/PySide compatible for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions