Skip to content

Commit aff9006

Browse files
committed
test: test async login
1 parent 7c19b7e commit aff9006

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/test_async_login.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import scratchattach.async_api as sa
2+
import asyncio
3+
import util
4+
import warnings
5+
import pytest
6+
7+
8+
@pytest.mark.asyncio
9+
async def test_async_login():
10+
if not util.credentials_available():
11+
warnings.warn("Skipped test_activity because there were no credentials available.")
12+
return
13+
async with await util.async_session() as sess:
14+
...
15+
16+
17+
if __name__ == "__main__":
18+
asyncio.run(test_async_login())

0 commit comments

Comments
 (0)