summaryrefslogtreecommitdiff
path: root/tests/helpers/fixtures.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helpers/fixtures.py')
-rw-r--r--tests/helpers/fixtures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/helpers/fixtures.py b/tests/helpers/fixtures.py
index 82159233c..cd58fb3e4 100644
--- a/tests/helpers/fixtures.py
+++ b/tests/helpers/fixtures.py
@@ -126,7 +126,7 @@ class FakeStatusBar(QWidget):
self.hbox = QHBoxLayout(self)
self.hbox.addStretch()
self.hbox.setContentsMargins(0, 0, 0, 0)
- self.setAttribute(Qt.WA_StyledBackground, True)
+ self.setAttribute(Qt.WidgetAttribute.WA_StyledBackground, True)
self.setStyleSheet('background-color: red;')
def minimumSizeHint(self):
@@ -434,7 +434,7 @@ def qnam(qapp):
"""Session-wide QNetworkAccessManager."""
from PyQt6.QtNetwork import QNetworkAccessManager
nam = QNetworkAccessManager()
- nam.setNetworkAccessible(QNetworkAccessManager.NotAccessible)
+ nam.setNetworkAccessible(QNetworkAccessManager.NetworkAccessibility.NotAccessible)
return nam