[lint] more linting changes
This commit is contained in:
@@ -42,8 +42,7 @@ def test_check_access_with_valid_timetable(db_session):
|
||||
db_session.commit()
|
||||
|
||||
# Test: access should be granted within time window
|
||||
result = checkAccess("test-key-123", db_session)
|
||||
assert result == True
|
||||
assert checkAccess("test-key-123", db_session)
|
||||
|
||||
|
||||
def test_check_access_outside_hours(db_session):
|
||||
@@ -74,8 +73,7 @@ def test_check_access_outside_hours(db_session):
|
||||
group.accessauths = [aa]
|
||||
|
||||
db_session.commit()
|
||||
result = checkAccess("test-key-123", db_session)
|
||||
assert result == False
|
||||
assert not checkAccess("test-key-123", db_session)
|
||||
|
||||
|
||||
def test_check_access_with_valid_oneshot(db_session):
|
||||
@@ -106,8 +104,7 @@ def test_check_access_with_valid_oneshot(db_session):
|
||||
db_session.commit()
|
||||
|
||||
# Test: access should be granted within time window
|
||||
result = checkAccess("test-key-123", db_session)
|
||||
assert result == True
|
||||
assert checkAccess("test-key-123", db_session)
|
||||
assert aa.oneshot.uses == 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user