sqlalchemy-pytest 0.2.0__tar.gz → 0.2.1__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.
- {sqlalchemy-pytest-0.2.0 → sqlalchemy-pytest-0.2.1}/PKG-INFO +1 -1
- {sqlalchemy-pytest-0.2.0 → sqlalchemy-pytest-0.2.1}/pyproject.toml +2 -2
- sqlalchemy-pytest-0.2.1/sqlalchemy_pytest/__init__.py +1 -0
- {sqlalchemy-pytest-0.2.0 → sqlalchemy-pytest-0.2.1}/sqlalchemy_pytest/database.py +4 -2
- sqlalchemy-pytest-0.2.0/sqlalchemy_pytest/__init__.py +0 -1
- {sqlalchemy-pytest-0.2.0 → sqlalchemy-pytest-0.2.1}/README.md +0 -0
- {sqlalchemy-pytest-0.2.0 → sqlalchemy-pytest-0.2.1}/tests/__init__.py +0 -0
- {sqlalchemy-pytest-0.2.0 → sqlalchemy-pytest-0.2.1}/tests/conftest.py +0 -0
- {sqlalchemy-pytest-0.2.0 → sqlalchemy-pytest-0.2.1}/tests/test_database.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sqlalchemy-pytest"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Doctor", email = "thirvondukr@gmail.com" },
|
|
@@ -71,7 +71,7 @@ precision = 2
|
|
|
71
71
|
|
|
72
72
|
[tool.commitizen]
|
|
73
73
|
name = "cz_conventional_commits"
|
|
74
|
-
version = "0.2.
|
|
74
|
+
version = "0.2.1"
|
|
75
75
|
tag_format = "$version"
|
|
76
76
|
version_files = [
|
|
77
77
|
"sqlalchemy_pytest/__init__.py",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from collections.abc import AsyncGenerator, AsyncIterable
|
|
3
|
+
from collections.abc import AsyncGenerator, AsyncIterable, AsyncIterator
|
|
4
4
|
from typing import TYPE_CHECKING, cast
|
|
5
5
|
|
|
6
6
|
import pytest
|
|
@@ -73,7 +73,9 @@ async def _sqlalchemy_create_database(
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
@pytest.fixture(scope="session")
|
|
76
|
-
async def sqlalchemy_pytest_engine(
|
|
76
|
+
async def sqlalchemy_pytest_engine(
|
|
77
|
+
sqlalchemy_pytest_database_url: str,
|
|
78
|
+
) -> AsyncIterator[AsyncEngine]:
|
|
77
79
|
engine = create_async_engine(sqlalchemy_pytest_database_url)
|
|
78
80
|
yield engine
|
|
79
81
|
await engine.dispose()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|