chore: Revised code linter
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user