Small fixes / optimizations
This commit is contained in:
@@ -146,7 +146,7 @@ class Listener:
|
|||||||
def _fetch_sequence_id(session: _session.Session) -> int:
|
def _fetch_sequence_id(session: _session.Session) -> int:
|
||||||
"""Fetch sequence ID."""
|
"""Fetch sequence ID."""
|
||||||
params = {
|
params = {
|
||||||
"limit": 1,
|
"limit": 0,
|
||||||
"tags": ["INBOX"],
|
"tags": ["INBOX"],
|
||||||
"before": None,
|
"before": None,
|
||||||
"includeDeliveryReceipts": False,
|
"includeDeliveryReceipts": False,
|
||||||
|
@@ -195,7 +195,7 @@ class UserData(User):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@attr.s
|
@attrs_default
|
||||||
class ActiveStatus:
|
class ActiveStatus:
|
||||||
#: Whether the user is active now
|
#: Whether the user is active now
|
||||||
active = attr.ib(None, type=bool)
|
active = attr.ib(None, type=bool)
|
||||||
|
10
tests/test_examples.py
Normal file
10
tests/test_examples.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import pytest
|
||||||
|
import py_compile
|
||||||
|
import glob
|
||||||
|
from os import path
|
||||||
|
|
||||||
|
|
||||||
|
def test_examples_compiles():
|
||||||
|
# Compiles the examples, to check for syntax errors
|
||||||
|
for name in glob.glob(path.join(path.dirname(__file__), "../examples", "*.py")):
|
||||||
|
py_compile.compile(name)
|
Reference in New Issue
Block a user