diff --git a/corrscope/gui/view_mainwindow.py b/corrscope/gui/view_mainwindow.py index e51a549..abc128b 100644 --- a/corrscope/gui/view_mainwindow.py +++ b/corrscope/gui/view_mainwindow.py @@ -59,7 +59,7 @@ class MainWindow(QWidget): width = 1280 height = 0 - MainWindow.resize(width * scale, height * scale) + MainWindow.resize(int(width * scale), int(height * scale)) s = LayoutStack(MainWindow) diff --git a/tests/test_model_bind.py b/tests/test_model_bind.py index b835599..6ff9eb8 100644 --- a/tests/test_model_bind.py +++ b/tests/test_model_bind.py @@ -1,5 +1,5 @@ import pytest -from pytest_cases import pytest_fixture_plus +from pytest_cases import fixture from corrscope.gui.model_bind import rgetattr, rsetattr, rhasattr, flatten_attr @@ -22,7 +22,7 @@ class Residence(object): self.sqft = sqft -@pytest_fixture_plus +@fixture @pytest.mark.parametrize("s", ["__", "."]) def separator(s: str) -> str: return s diff --git a/tests/test_trigger.py b/tests/test_trigger.py index 1160cc8..84331e6 100644 --- a/tests/test_trigger.py +++ b/tests/test_trigger.py @@ -7,7 +7,7 @@ from matplotlib.axes import Axes from matplotlib.figure import Figure # Pycharm assumes anything called "fixture" is pytest.fixture. -from pytest_cases import pytest_fixture_plus as fixture +from pytest_cases import fixture from corrscope import triggers from corrscope.triggers import (