File: test_connection.py

package info (click to toggle)
python-anthemav 1.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: python: 1,408; makefile: 12
file content (12 lines) | stat: -rw-r--r-- 267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import pytest
from anthemav import Connection


def test_instantiate_connection():
    Connection()


@pytest.mark.asyncio
async def test_create_connection_auto_reconnect_false():
    conn = await Connection().create(auto_reconnect=False)
    assert conn is not None