Skip to content

Commit

Permalink
Cleared a few too long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
vrbanecd committed Jan 30, 2025
1 parent d3748d9 commit aebea82
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async def makedir_chown_chmod(dir, mode=STANDARD_MODE):
"Could not change access permissions of a directory %s to %s.",
dir,
mode,
exc_info=True
exc_info=True,
)


Expand Down Expand Up @@ -536,7 +536,6 @@ async def stop_expired_instances():
diff = now - datetime.datetime.fromisoformat(last_accessed)
if diff.seconds >= INSTANCE_TIMEOUT_SEC:
res = await _stop_webdav_instance(user, sw_state, sw_condition)
# TO DO: remove instance from session_state
if res != 0:
logger.error(
"Instance for user %s exited with code %s.",
Expand All @@ -545,12 +544,12 @@ async def stop_expired_instances():
)
else:
logger.info(
"Instance for user %s has been terminated after timeout",
"Inactive instance for user %s has been terminated",
user,
)
else:
logger.error(
"Session for user %s does not have the property 'last_accessed'",
"Session for user %s does not have the property last_accessed",
user,
)
else:
Expand Down

1 comment on commit aebea82

@vrbanecd
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
32 0 0 32 100 20.243054999s

Passed Tests

Name ⏱️ Duration Suite
GET USER1 9.679 s Teapot-Tests
GET USER2 9.550 s Teapot-Tests
GET NO TOKEN 0.013 s Teapot-Tests
GET INVALID TOKEN 0.046 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.015 s Teapot-Tests
PUT REQUEST NO TOKEN 0.014 s Teapot-Tests
PUT REQUEST USER1 0.189 s Teapot-Tests
PUT REQUEST USER2 0.085 s Teapot-Tests
GET FILE USER1 0.063 s Teapot-Tests
GET FILE USER2 0.054 s Teapot-Tests
GET FILE NO TOKEN 0.009 s Teapot-Tests
GET FILE INVALID TOKEN 0.008 s Teapot-Tests
DELETE REQUEST USER1 0.035 s Teapot-Tests
DELETE REQUEST USER2 0.035 s Teapot-Tests
DELETE REQUEST INVALID TOKEN 0.009 s Teapot-Tests
DELETE REQUEST NO TOKEN 0.009 s Teapot-Tests
GET USER1 EXTRA_AREA 0.039 s Teapot-Tests
GET USER2 EXTRA_AREA 0.040 s Teapot-Tests
GET NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
GET INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST NO TOKEN EXTRA_AREA 0.008 s Teapot-Tests
PUT REQUEST USER1 EXTRA_AREA 0.037 s Teapot-Tests
PUT REQUEST USER2 EXTRA_AREA 0.039 s Teapot-Tests
GET FILE USER1 EXTRA_AREA 0.057 s Teapot-Tests
GET FILE USER2 EXTRA_AREA 0.053 s Teapot-Tests
GET FILE NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests
GET FILE INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
DELETE REQUEST USER1 EXTRA_AREA 0.048 s Teapot-Tests
DELETE REQUEST USER2 EXTRA_AREA 0.041 s Teapot-Tests
DELETE REQUEST INVALID TOKEN EXTRA_AREA 0.010 s Teapot-Tests
DELETE REQUEST NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests

Please sign in to comment.