Skip to content

Commit

Permalink
testers
Browse files Browse the repository at this point in the history
  • Loading branch information
idocyabra committed Apr 15, 2024
1 parent 09863a1 commit 097c04e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/abs_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from abc import ABC
from abc import ABC, abstractmethod
from contextlib import contextmanager
from datetime import timedelta, datetime, timezone
from datetime import datetime, timezone

import time
from tests.utils import session_permanent, session_refresh_each_request
Expand All @@ -12,6 +12,7 @@ class ABSTestSession(ABC):
def setup_filesystem(self):
raise NotImplementedError

@abstractmethod
def retrieve_stored_session(self, key, app):
raise NotImplementedError

Expand All @@ -21,7 +22,6 @@ def test_default(self, app_utils,_session_permanent,
_session_refresh_each_request):
raise NotImplementedError


def _default_test(self, app_utils, app):
app_utils.test_session(app)
app_utils.test_regenerate_session(app)
Expand Down
3 changes: 3 additions & 0 deletions tests/test_dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def setup_dynamodb(self):
}
)

def retrieve_stored_session(self, key, app):
return self.store.get_item(Key={"id": key}).get("Item")

def test_dynamodb_default(self, app_utils):
with self.setup_dynamodb():
app = app_utils.create_app(
Expand Down

0 comments on commit 097c04e

Please sign in to comment.