summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/suite/requirements.py
blob: 3ea72adcd130fb689243395b13b45fefd7a7371b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Requirement definitions used by the generic dialect suite.

External dialect test suites should subclass SuiteRequirements
to provide specific inclusion/exlusions.

"""
from ..requirements import Requirements
from .. import exclusions


class SuiteRequirements(Requirements):

    @property
    def create_table(self):
        """target platform can emit basic CreateTable DDL."""

        return exclusions.open

    @property
    def drop_table(self):
        """target platform can emit basic DropTable DDL."""

        return exclusions.open

    @property
    def autoincrement_insert(self):
        """target platform generates new surrogate integer primary key values
        when insert() is executed, excluding the pk column."""

        return exclusions.open