Update Atlos tests

This commit is contained in:
erinhmclark
2025-03-05 21:24:38 +00:00
parent 0f911543cd
commit b9c2f98f46
14 changed files with 66 additions and 383 deletions

View File

@@ -11,12 +11,9 @@ from auto_archiver.utils import calculate_file_hash
class AtlosFeederDbStorage(Feeder, Database, Storage):
@property
def session(self) -> requests.Session:
def setup(self) -> requests.Session:
"""create and return a persistent session."""
if not hasattr(self, "_session"):
self._session = requests.Session()
return self._session
self.session = requests.Session()
def _get(self, endpoint: str, params: Optional[dict] = None) -> dict:
"""Wrapper for GET requests to the Atlos API."""