Fix deprecation warnings discovered by unit tests

fix-global-prefs
nyanpasu64 2021-06-13 20:58:57 -07:00
rodzic 07fd92d900
commit 385774ec1f
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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

Wyświetl plik

@ -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 (