Skip to content

Commit f7e6a0a

Browse files
committed
Unit tests: added support for pytest
1 parent 7eb6218 commit f7e6a0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+483
-385
lines changed

.github/workflows/python-package-PyQt5.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ jobs:
4545
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4646
- name: Test with pytest
4747
run: |
48-
PythonQwt-tests --mode unattended
48+
pytest

.github/workflows/python-package-PyQt6.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4747
- name: Test with pytest
4848
run: |
49-
PythonQwt-tests --mode unattended
49+
pytest

.github/workflows/python-package-PySide6.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ jobs:
4646
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4747
- name: Test with pytest
4848
run: |
49-
PythonQwt-tests --mode unattended
49+
pytest

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PythonQwt Releases
22

3-
## Version 0.10.3
3+
## Version 0.11.0
44

55
- [Issue #72](https://github.com/PierreRaybaut/PythonQwt/issues/72) - AttributeError: 'QwtScaleWidget' object has no attribute 'maxMajor' / 'maxMinor' / 'stepSize'
66

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ for more details on API limitations when comparing to Qwt.
9292
- QtPy >= 1.3
9393
- NumPy >= 1.5
9494

95+
### Optional dependencies
96+
97+
- pytest, pytest-qt (for unit tests)
98+
- sphinx (for documentation generation)
99+
95100
## Installation
96101

97102
From the source package:

doc/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
# All configuration values have a default; values that are commented out
99
# serve to show the default.
1010

11-
from __future__ import print_function, unicode_literals
12-
1311
import sys
1412

1513
# If extensions (or modules to document with autodoc) are in another directory,

doc/installation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Requirements:
1010
* QtPy >= 1.3
1111
* NumPy 1.x (x>=5)
1212
* Sphinx 1.x (x>=1) for documentation generation
13+
* pytest for unit testing
1314

1415
Installation
1516
------------

qwt/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
.. _GitHubPage: http://pierreraybaut.github.io/PythonQwt
2727
.. _GitHub: https://github.com/PierreRaybaut/PythonQwt
2828
"""
29-
__version__ = "0.10.3"
29+
30+
__version__ = "0.11.0"
3031
QWT_VERSION_STR = "6.1.5"
3132

3233
import warnings

qwt/_math.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# Copyright (c) 2015 Pierre Raybaut, for the Python translation/optimization
66
# (see LICENSE file for more details)
77

8-
from __future__ import division
9-
108
from qtpy.QtCore import qFuzzyCompare
119

1210
import math

qwt/plot_renderer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
:members:
1414
"""
1515

16-
from __future__ import division
17-
1816
from qwt.painter import QwtPainter
1917
from qwt.plot import QwtPlot
2018
from qwt.plot_layout import QwtPlotLayout

0 commit comments

Comments
 (0)