@pytest.fixture
def sso_session_teppo(sso_format_datetime):
now = datetime.now()
exp = now + timedelta(days=1)
return {
"authenticated_user": {
"email": "fairdata-test@postit.csc.fi",
"firstname": "fd_teppo_first",
"id": "fd_teppo3",
"identity_provider": "CSCID",
"lastname": "fd_teppo_läst",
"organization": {"id": "csc.fi", "name": "CSC - Tieteen tietotekniikan keskus Oy"},
},
"exp": exp.timestamp(),
"expiration": sso_format_datetime(exp),
"fairdata_user": {"id": "fd_teppo3", "locked": False},
"id": "2023-05-29-063118c7d228be69bf40be89e9d6c221b3d23e",
"initiated": sso_format_datetime(now),
"initiating_service": "METAX",
"language": "en",
"projects": {"fd_teppo3_project": {"services": ["ETSIN", "IDA", "QVAIN"]}},
"redirect_url": "https://qvain.fd-dev.csc.fi",
"services": {
"IDA": {"projects": ["fd_teppo3_project"]},
},
}