chore: Revised code linter

This commit is contained in:
kbe
2025-08-12 01:50:33 +02:00
parent 4872b817b3
commit cfbb857cfb
11 changed files with 8 additions and 375 deletions

View File

@@ -6,7 +6,7 @@ Unit tests for CrossFitBooker session-related methods
import pytest
import os
import sys
from unittest.mock import patch, Mock, AsyncMock
from unittest.mock import patch, Mock
from datetime import datetime, timedelta, date
import pytz
@@ -318,10 +318,9 @@ class TestCrossFitBookerQuit:
def test_quit(self):
"""Test quit method"""
booker = CrossFitBooker()
with patch('sys.exit') as mock_exit:
with pytest.raises(SystemExit) as excinfo:
booker.quit()
assert excinfo.value.code == 0
with pytest.raises(SystemExit) as excinfo:
booker.quit()
assert excinfo.value.code == 0
class TestCrossFitBookerMatchesPreferredSession:
"""Test cases for matches_preferred_session method"""