blob: 274a0c0ebf81167191c3a29616bd551c33a61383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import pytest
pytestmark = pytest.mark.crdb
def test_vendor(conn):
assert conn.info.vendor == "CockroachDB"
def test_server_version(conn):
assert conn.info.server_version > 200000
@pytest.mark.crdb("< 22")
def test_backend_pid_pre_22(conn):
assert conn.info.backend_pid == 0
@pytest.mark.crdb(">= 22")
def test_backend_pid(conn):
assert conn.info.backend_pid > 0
|