From f0ee3b7079d2e171c5d0eae6d4084fb024de2969 Mon Sep 17 00:00:00 2001 From: Constverum Date: Mon, 6 Nov 2017 00:46:11 +0300 Subject: [PATCH] minor fix --- .travis.yml | 5 ++++- README.rst | 2 +- setup.py | 1 - tests/test_basics.py | 5 ++++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1ec0e46..d7bae48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,14 @@ language: python python: - - 3.5 - 3.6 os: - linux install: - pip install -r requirements.txt +before_script: + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - sleep 3 # give xvfb some time to start script: python setup.py test deploy: provider: pypi diff --git a/README.rst b/README.rst index 655ed1d..09dfddc 100644 --- a/README.rst +++ b/README.rst @@ -32,7 +32,7 @@ Features Requirements ------------ -* Python **3.5** or higher +* Python **3.6** or higher * `PyQt5 `_ * `PyQtGraph `_ * `NumPy `_ diff --git a/setup.py b/setup.py index f076b20..7e53eb9 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,6 @@ classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Operating System :: POSIX', 'Operating System :: MacOS :: MacOS X', diff --git a/tests/test_basics.py b/tests/test_basics.py index bd7a9e3..88e4030 100644 --- a/tests/test_basics.py +++ b/tests/test_basics.py @@ -3,7 +3,10 @@ def test_init(qtbot): widget = MainWidget() - widget.show() qtbot.addWidget(widget) + widget.show() + assert widget.isVisible() + # contains only the Data tab + assert widget.count() == 1