kopia lustrzana https://github.com/corrscope/corrscope
Fix deprecation warnings discovered by unit tests
rodzic
07fd92d900
commit
385774ec1f
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
Ładowanie…
Reference in New Issue