Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent 1bb810b commit 003134b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion scripts/sample_usage.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import sys

from pyoncatqt.login import ONCatLogin
from qtpy.QtWidgets import QApplication, QLabel, QListWidget, QVBoxLayout, QWidget

from pyoncatqt.login import ONCatLogin


class MainWindow(QWidget):
"""Main widget"""
Expand Down
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import os

import pyoncatqt.configuration
import pytest

import pyoncatqt.configuration


@pytest.fixture(autouse=True)
def _config_path(monkeypatch: pytest.fixture) -> None:
Expand All @@ -16,6 +17,6 @@ def _get_login(monkeypatch: pytest.fixture) -> None:
monkeypatch.setattr(os, "getlogin", lambda: "test")


@pytest.fixture()
@pytest.fixture
def token_path() -> str:
return "tests/data/token.json"
5 changes: 3 additions & 2 deletions tests/test_login_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
import oauthlib
import pyoncat
import pytest
from pyoncatqt.configuration import get_data
from pyoncatqt.login import ONCatLogin, ONCatLoginDialog
from qtpy import QtCore
from qtpy.QtWidgets import QApplication, QDialog, QLineEdit, QPushButton

from pyoncatqt.configuration import get_data
from pyoncatqt.login import ONCatLogin, ONCatLoginDialog


def check_status(login_status: bool) -> None:
assert login_status
Expand Down
1 change: 1 addition & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from unittest.mock import patch

import pytest

from pyoncatqt.version import get_version


Expand Down

0 comments on commit 003134b

Please sign in to comment.