iker-python-common 1.0.55__tar.gz → 1.0.56__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/PKG-INFO +1 -1
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/PKG-INFO +1 -1
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/dbutils_test.py +82 -83
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/.editorconfig +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/.github/workflows/pr.yml +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/.github/workflows/push.yml +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/.gitignore +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/MANIFEST.in +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/README.md +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/VERSION +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/pyproject.toml +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/config/config.cfg +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/csv/data.csv +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/csv/data.tsv +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.baz/file.bar.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.baz/file.foo.bar +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.baz/file.foo.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/dir.foo.bar/file.bar.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/dir.foo.bar/file.foo.bar +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/dir.foo.bar/file.foo.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/file.bar +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/file.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/file.foo +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.baz/file.bar.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.baz/file.foo.bar +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.baz/file.foo.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/dir.foo.bar/dir.foo.bar.baz/file.foo.bar.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.bar.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.bar +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/dir.foo.bar/file.foo.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/file.bar +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/file.baz +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/file.foo +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/setup.cfg +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/setup.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/__init__.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/__init__.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/argutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/config.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/csv.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/dbutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/dockerutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/dtutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/funcutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/jsonutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/logger.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/numutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/randutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/retry.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/s3utils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/sequtils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/shutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/span.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/strutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/testutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/typeutils.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/SOURCES.txt +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/dependency_links.txt +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/not-zip-safe +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/requires.txt +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/top_level.txt +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/__init__.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/argutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/config_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/csv_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/dockerutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/dtutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/funcutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/jsonutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/logger_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/numutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/randutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/retry_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/s3utils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/sequtils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/shutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/span_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/strutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/testutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/typeutils_test.py +0 -0
- {iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/docker_fixtures.py +0 -0
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/dbutils_test.py
RENAMED
|
@@ -6,12 +6,11 @@ from decimal import Decimal
|
|
|
6
6
|
import pytest
|
|
7
7
|
import pytest_mysql.factories
|
|
8
8
|
import pytest_postgresql.factories
|
|
9
|
+
import sqlalchemy as sa
|
|
9
10
|
import sqlalchemy.dialects.mysql as sa_mysql
|
|
10
11
|
import sqlalchemy.dialects.postgresql as sa_pg
|
|
11
|
-
import sqlalchemy.
|
|
12
|
-
|
|
13
|
-
from sqlalchemy.orm import DeclarativeBase, Mapped, MappedAsDataclass
|
|
14
|
-
from sqlalchemy.orm.exc import FlushError
|
|
12
|
+
import sqlalchemy.exc as sa_exc
|
|
13
|
+
import sqlalchemy.orm as sa_orm
|
|
15
14
|
|
|
16
15
|
from iker.common.utils.dbutils import ConnectionMaker, Dialects, Drivers
|
|
17
16
|
from iker.common.utils.dbutils import make_scheme
|
|
@@ -29,83 +28,83 @@ fixture_postgresql_test_proc = pytest_postgresql.factories.postgresql_proc(host=
|
|
|
29
28
|
fixture_postgresql_test = pytest_postgresql.factories.postgresql("fixture_postgresql_test_proc", dbname="test")
|
|
30
29
|
|
|
31
30
|
|
|
32
|
-
class MysqlBaseModel(MappedAsDataclass, DeclarativeBase):
|
|
31
|
+
class MysqlBaseModel(sa_orm.MappedAsDataclass, sa_orm.DeclarativeBase):
|
|
33
32
|
pass
|
|
34
33
|
|
|
35
34
|
|
|
36
|
-
class PostgresqlBaseModel(MappedAsDataclass, DeclarativeBase):
|
|
35
|
+
class PostgresqlBaseModel(sa_orm.MappedAsDataclass, sa_orm.DeclarativeBase):
|
|
37
36
|
pass
|
|
38
37
|
|
|
39
38
|
|
|
40
39
|
class MysqlDummyRecord(MysqlBaseModel):
|
|
41
40
|
__tablename__ = "mysql_dummy_record"
|
|
42
41
|
|
|
43
|
-
dummy_id: Mapped[int] =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
dummy_char: Mapped[str] =
|
|
50
|
-
dummy_varchar: Mapped[str] =
|
|
51
|
-
dummy_text: Mapped[str] =
|
|
52
|
-
dummy_boolean: Mapped[bool] =
|
|
53
|
-
dummy_smallint: Mapped[int] =
|
|
54
|
-
dummy_integer: Mapped[int] =
|
|
55
|
-
dummy_bigint: Mapped[int] =
|
|
56
|
-
dummy_float: Mapped[float] =
|
|
57
|
-
dummy_double: Mapped[Decimal] =
|
|
58
|
-
dummy_date: Mapped[datetime.date] =
|
|
59
|
-
dummy_time: Mapped[datetime.time] =
|
|
60
|
-
dummy_datetime: Mapped[datetime.datetime] =
|
|
61
|
-
dummy_json: Mapped[object] =
|
|
62
|
-
dummy_unique_string: Mapped[str] =
|
|
42
|
+
dummy_id: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_mysql.BIGINT,
|
|
43
|
+
primary_key=True,
|
|
44
|
+
autoincrement=True,
|
|
45
|
+
index=True,
|
|
46
|
+
unique=True,
|
|
47
|
+
init=False)
|
|
48
|
+
dummy_char: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_mysql.CHAR(31))
|
|
49
|
+
dummy_varchar: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_mysql.VARCHAR(31))
|
|
50
|
+
dummy_text: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_mysql.TEXT)
|
|
51
|
+
dummy_boolean: sa_orm.Mapped[bool] = sa_orm.mapped_column(sa_mysql.BOOLEAN)
|
|
52
|
+
dummy_smallint: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_mysql.SMALLINT)
|
|
53
|
+
dummy_integer: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_mysql.INTEGER)
|
|
54
|
+
dummy_bigint: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_mysql.BIGINT)
|
|
55
|
+
dummy_float: sa_orm.Mapped[float] = sa_orm.mapped_column(sa_mysql.FLOAT)
|
|
56
|
+
dummy_double: sa_orm.Mapped[Decimal] = sa_orm.mapped_column(sa_mysql.DOUBLE)
|
|
57
|
+
dummy_date: sa_orm.Mapped[datetime.date] = sa_orm.mapped_column(sa_mysql.DATE)
|
|
58
|
+
dummy_time: sa_orm.Mapped[datetime.time] = sa_orm.mapped_column(sa_mysql.TIME)
|
|
59
|
+
dummy_datetime: sa_orm.Mapped[datetime.datetime] = sa_orm.mapped_column(sa_mysql.DATETIME)
|
|
60
|
+
dummy_json: sa_orm.Mapped[object] = sa_orm.mapped_column(sa_mysql.JSON)
|
|
61
|
+
dummy_unique_string: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_mysql.VARCHAR(15), unique=True)
|
|
63
62
|
|
|
64
63
|
__table_args__ = (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
sa.Index("index_mysql_dummy_record",
|
|
65
|
+
dummy_boolean,
|
|
66
|
+
dummy_smallint,
|
|
67
|
+
dummy_integer,
|
|
68
|
+
dummy_bigint,
|
|
69
|
+
unique=True),
|
|
71
70
|
)
|
|
72
71
|
|
|
73
72
|
|
|
74
73
|
class PostgresqlDummyRecord(PostgresqlBaseModel):
|
|
75
74
|
__tablename__ = "postgresql_dummy_record"
|
|
76
75
|
|
|
77
|
-
dummy_id: Mapped[int] =
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
dummy_char: Mapped[str] =
|
|
84
|
-
dummy_varchar: Mapped[str] =
|
|
85
|
-
dummy_text: Mapped[str] =
|
|
86
|
-
dummy_boolean: Mapped[bool] =
|
|
87
|
-
dummy_smallint: Mapped[int] =
|
|
88
|
-
dummy_integer: Mapped[int] =
|
|
89
|
-
dummy_bigint: Mapped[int] =
|
|
90
|
-
dummy_float: Mapped[float] =
|
|
91
|
-
dummy_double_precision: Mapped[float] =
|
|
92
|
-
dummy_date: Mapped[datetime.date] =
|
|
93
|
-
dummy_time: Mapped[datetime.time] =
|
|
94
|
-
dummy_time_tz: Mapped[datetime.time] =
|
|
95
|
-
dummy_timestamp: Mapped[datetime.datetime] =
|
|
96
|
-
dummy_timestamp_tz: Mapped[datetime.datetime] =
|
|
97
|
-
dummy_array_varchar: Mapped[list[str]] =
|
|
98
|
-
dummy_jsonb: Mapped[object] =
|
|
99
|
-
dummy_json: Mapped[object] =
|
|
100
|
-
dummy_unique_string: Mapped[str] =
|
|
76
|
+
dummy_id: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_pg.BIGINT,
|
|
77
|
+
primary_key=True,
|
|
78
|
+
autoincrement=True,
|
|
79
|
+
index=True,
|
|
80
|
+
unique=True,
|
|
81
|
+
init=False)
|
|
82
|
+
dummy_char: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_pg.CHAR(31))
|
|
83
|
+
dummy_varchar: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_pg.VARCHAR(31))
|
|
84
|
+
dummy_text: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_pg.TEXT)
|
|
85
|
+
dummy_boolean: sa_orm.Mapped[bool] = sa_orm.mapped_column(sa_pg.BOOLEAN)
|
|
86
|
+
dummy_smallint: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_pg.SMALLINT)
|
|
87
|
+
dummy_integer: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_pg.INTEGER)
|
|
88
|
+
dummy_bigint: sa_orm.Mapped[int] = sa_orm.mapped_column(sa_pg.BIGINT)
|
|
89
|
+
dummy_float: sa_orm.Mapped[float] = sa_orm.mapped_column(sa_pg.FLOAT)
|
|
90
|
+
dummy_double_precision: sa_orm.Mapped[float] = sa_orm.mapped_column(sa_pg.DOUBLE_PRECISION)
|
|
91
|
+
dummy_date: sa_orm.Mapped[datetime.date] = sa_orm.mapped_column(sa_pg.DATE)
|
|
92
|
+
dummy_time: sa_orm.Mapped[datetime.time] = sa_orm.mapped_column(sa_pg.TIME)
|
|
93
|
+
dummy_time_tz: sa_orm.Mapped[datetime.time] = sa_orm.mapped_column(sa_pg.TIME(timezone=True))
|
|
94
|
+
dummy_timestamp: sa_orm.Mapped[datetime.datetime] = sa_orm.mapped_column(sa_pg.TIMESTAMP)
|
|
95
|
+
dummy_timestamp_tz: sa_orm.Mapped[datetime.datetime] = sa_orm.mapped_column(sa_pg.TIMESTAMP(timezone=True))
|
|
96
|
+
dummy_array_varchar: sa_orm.Mapped[list[str]] = sa_orm.mapped_column(sa_pg.ARRAY(sa_pg.VARCHAR(31)))
|
|
97
|
+
dummy_jsonb: sa_orm.Mapped[object] = sa_orm.mapped_column(sa_pg.JSONB)
|
|
98
|
+
dummy_json: sa_orm.Mapped[object] = sa_orm.mapped_column(sa_pg.JSON)
|
|
99
|
+
dummy_unique_string: sa_orm.Mapped[str] = sa_orm.mapped_column(sa_pg.VARCHAR(15), unique=True)
|
|
101
100
|
|
|
102
101
|
__table_args__ = (
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
sa.Index("index_postgresql_dummy_record",
|
|
103
|
+
dummy_boolean,
|
|
104
|
+
dummy_smallint,
|
|
105
|
+
dummy_integer,
|
|
106
|
+
dummy_bigint,
|
|
107
|
+
unique=True),
|
|
109
108
|
)
|
|
110
109
|
|
|
111
110
|
|
|
@@ -152,7 +151,7 @@ def test_mysql_connection_maker(fixture_mysql_test_proc, fixture_mysql_test):
|
|
|
152
151
|
session.commit()
|
|
153
152
|
|
|
154
153
|
with maker.make_session() as session:
|
|
155
|
-
count = session.query(
|
|
154
|
+
count = session.query(sa.func.count()).select_from(MysqlDummyRecord).scalar()
|
|
156
155
|
|
|
157
156
|
assert count == 1000
|
|
158
157
|
|
|
@@ -163,7 +162,7 @@ def test_mysql_connection_maker(fixture_mysql_test_proc, fixture_mysql_test):
|
|
|
163
162
|
session.commit()
|
|
164
163
|
|
|
165
164
|
with maker.make_session() as session:
|
|
166
|
-
count = session.query(
|
|
165
|
+
count = session.query(sa.func.count()).select_from(MysqlDummyRecord).scalar()
|
|
167
166
|
|
|
168
167
|
assert count == 500
|
|
169
168
|
|
|
@@ -204,13 +203,13 @@ def test_mysql_connection_maker(fixture_mysql_test_proc, fixture_mysql_test):
|
|
|
204
203
|
|
|
205
204
|
with maker.make_session() as session:
|
|
206
205
|
# PK violation, which causes ``IntegrityError``
|
|
207
|
-
with pytest.raises(IntegrityError):
|
|
206
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
208
207
|
session.add(orm_clone(result))
|
|
209
208
|
session.commit()
|
|
210
209
|
|
|
211
210
|
with maker.make_session() as session:
|
|
212
211
|
# Unique index violation, which causes ``IntegrityError``
|
|
213
|
-
with pytest.raises(IntegrityError):
|
|
212
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
214
213
|
session.add(orm_clone(result, no_autoincrement=True))
|
|
215
214
|
session.commit()
|
|
216
215
|
|
|
@@ -282,8 +281,8 @@ def test_mysql_connection_maker__sql_text(fixture_mysql_test_proc, fixture_mysql
|
|
|
282
281
|
WHERE `dummy_id` IN (SELECT `dummy_id`
|
|
283
282
|
FROM (SELECT `dummy_id`
|
|
284
283
|
FROM `mysql_dummy_record`
|
|
285
|
-
ORDER BY `dummy_id`
|
|
286
|
-
|
|
284
|
+
ORDER BY `dummy_id` LIMIT 1000
|
|
285
|
+
OFFSET :offset) AS `subquery`)
|
|
287
286
|
""",
|
|
288
287
|
offset=500,
|
|
289
288
|
)
|
|
@@ -330,7 +329,8 @@ def test_mysql_connection_maker__sql_text(fixture_mysql_test_proc, fixture_mysql
|
|
|
330
329
|
maker.execute(
|
|
331
330
|
# language=mysql
|
|
332
331
|
"""
|
|
333
|
-
INSERT
|
|
332
|
+
INSERT
|
|
333
|
+
IGNORE INTO `mysql_dummy_record` (`dummy_id`,
|
|
334
334
|
`dummy_char`,
|
|
335
335
|
`dummy_varchar`,
|
|
336
336
|
`dummy_text`,
|
|
@@ -382,7 +382,8 @@ def test_mysql_connection_maker__sql_text(fixture_mysql_test_proc, fixture_mysql
|
|
|
382
382
|
maker.execute(
|
|
383
383
|
# language=mysql
|
|
384
384
|
"""
|
|
385
|
-
INSERT
|
|
385
|
+
INSERT
|
|
386
|
+
IGNORE INTO `mysql_dummy_record` (`dummy_char`,
|
|
386
387
|
`dummy_varchar`,
|
|
387
388
|
`dummy_text`,
|
|
388
389
|
`dummy_boolean`,
|
|
@@ -429,7 +430,7 @@ def test_mysql_connection_maker__sql_text(fixture_mysql_test_proc, fixture_mysql
|
|
|
429
430
|
|
|
430
431
|
with maker.make_session() as session:
|
|
431
432
|
# PK violation, which causes ``IntegrityError``
|
|
432
|
-
with pytest.raises(IntegrityError):
|
|
433
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
433
434
|
maker.execute(
|
|
434
435
|
# language=mysql
|
|
435
436
|
"""
|
|
@@ -483,7 +484,7 @@ def test_mysql_connection_maker__sql_text(fixture_mysql_test_proc, fixture_mysql
|
|
|
483
484
|
|
|
484
485
|
with maker.make_session() as session:
|
|
485
486
|
# Unique index violation, which causes ``IntegrityError``
|
|
486
|
-
with pytest.raises(IntegrityError):
|
|
487
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
487
488
|
maker.execute(
|
|
488
489
|
# language=mysql
|
|
489
490
|
"""
|
|
@@ -582,7 +583,7 @@ def test_postgresql_connection_maker(fixture_postgresql_test_proc, fixture_postg
|
|
|
582
583
|
session.commit()
|
|
583
584
|
|
|
584
585
|
with maker.make_session() as session:
|
|
585
|
-
count = session.query(
|
|
586
|
+
count = session.query(sa.func.count()).select_from(PostgresqlDummyRecord).scalar()
|
|
586
587
|
|
|
587
588
|
assert count == 1000
|
|
588
589
|
|
|
@@ -593,7 +594,7 @@ def test_postgresql_connection_maker(fixture_postgresql_test_proc, fixture_postg
|
|
|
593
594
|
session.commit()
|
|
594
595
|
|
|
595
596
|
with maker.make_session() as session:
|
|
596
|
-
count = session.query(
|
|
597
|
+
count = session.query(sa.func.count()).select_from(PostgresqlDummyRecord).scalar()
|
|
597
598
|
|
|
598
599
|
assert count == 500
|
|
599
600
|
|
|
@@ -633,19 +634,19 @@ def test_postgresql_connection_maker(fixture_postgresql_test_proc, fixture_postg
|
|
|
633
634
|
# Unique index violation, but suppressed by the compiler plugin
|
|
634
635
|
# However, since insertion is not performed, it fails to return and
|
|
635
636
|
# flush the auto-generated primary key of the ORM, which raises ``FlushError``
|
|
636
|
-
with pytest.raises(FlushError):
|
|
637
|
+
with pytest.raises(sa_orm.exc.FlushError):
|
|
637
638
|
session.add(orm_clone(result, no_autoincrement=True))
|
|
638
639
|
session.commit()
|
|
639
640
|
|
|
640
641
|
with maker.make_session() as session:
|
|
641
642
|
# PK violation, which causes ``IntegrityError``
|
|
642
|
-
with pytest.raises(IntegrityError):
|
|
643
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
643
644
|
session.add(orm_clone(result))
|
|
644
645
|
session.commit()
|
|
645
646
|
|
|
646
647
|
with maker.make_session() as session:
|
|
647
648
|
# Unique index violation, which causes ``IntegrityError``
|
|
648
|
-
with pytest.raises(IntegrityError):
|
|
649
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
649
650
|
session.add(orm_clone(result, no_autoincrement=True))
|
|
650
651
|
session.commit()
|
|
651
652
|
|
|
@@ -802,8 +803,7 @@ def test_postgresql_connection_maker__sql_text(fixture_postgresql_test_proc, fix
|
|
|
802
803
|
:dummy_array_varchar,
|
|
803
804
|
:dummy_jsonb,
|
|
804
805
|
:dummy_json,
|
|
805
|
-
:dummy_unique_string)
|
|
806
|
-
ON CONFLICT
|
|
806
|
+
:dummy_unique_string) ON CONFLICT
|
|
807
807
|
DO NOTHING
|
|
808
808
|
""",
|
|
809
809
|
dummy_id=result.dummy_id,
|
|
@@ -866,8 +866,7 @@ def test_postgresql_connection_maker__sql_text(fixture_postgresql_test_proc, fix
|
|
|
866
866
|
:dummy_array_varchar,
|
|
867
867
|
:dummy_jsonb,
|
|
868
868
|
:dummy_json,
|
|
869
|
-
:dummy_unique_string)
|
|
870
|
-
ON CONFLICT
|
|
869
|
+
:dummy_unique_string) ON CONFLICT
|
|
871
870
|
DO NOTHING
|
|
872
871
|
""",
|
|
873
872
|
dummy_char=result.dummy_char,
|
|
@@ -892,7 +891,7 @@ def test_postgresql_connection_maker__sql_text(fixture_postgresql_test_proc, fix
|
|
|
892
891
|
|
|
893
892
|
with maker.make_session() as session:
|
|
894
893
|
# PK violation, which causes ``IntegrityError``
|
|
895
|
-
with pytest.raises(IntegrityError):
|
|
894
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
896
895
|
maker.execute(
|
|
897
896
|
# language=postgresql
|
|
898
897
|
"""
|
|
@@ -958,7 +957,7 @@ def test_postgresql_connection_maker__sql_text(fixture_postgresql_test_proc, fix
|
|
|
958
957
|
|
|
959
958
|
with maker.make_session() as session:
|
|
960
959
|
# Unique index violation, which causes ``IntegrityError``
|
|
961
|
-
with pytest.raises(IntegrityError):
|
|
960
|
+
with pytest.raises(sa_exc.IntegrityError):
|
|
962
961
|
maker.execute(
|
|
963
962
|
# language=postgresql
|
|
964
963
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/config/config.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/file.bar
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/file.baz
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/s3utils/dir.foo/file.foo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/file.bar
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/file.baz
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/resources/unittest/shutils/dir.foo/file.foo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker/common/utils/dockerutils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/src/iker_python_common.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/config_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/csv_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/dtutils_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/logger_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/retry_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/s3utils_test.py
RENAMED
|
File without changes
|
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/shutils_test.py
RENAMED
|
File without changes
|
{iker_python_common-1.0.55 → iker_python_common-1.0.56}/test/iker_tests/common/utils/span_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|