sqlalchemy-pytest 0.1.1__tar.gz → 0.2.0__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.1.1 → sqlalchemy-pytest-0.2.0}/PKG-INFO +1 -1
- {sqlalchemy-pytest-0.1.1 → sqlalchemy-pytest-0.2.0}/pyproject.toml +2 -2
- sqlalchemy-pytest-0.2.0/sqlalchemy_pytest/__init__.py +1 -0
- {sqlalchemy-pytest-0.1.1 → sqlalchemy-pytest-0.2.0}/sqlalchemy_pytest/database.py +4 -2
- sqlalchemy-pytest-0.1.1/sqlalchemy_pytest/__init__.py +0 -1
- {sqlalchemy-pytest-0.1.1 → sqlalchemy-pytest-0.2.0}/README.md +0 -0
- {sqlalchemy-pytest-0.1.1 → sqlalchemy-pytest-0.2.0}/tests/__init__.py +0 -0
- {sqlalchemy-pytest-0.1.1 → sqlalchemy-pytest-0.2.0}/tests/conftest.py +0 -0
- {sqlalchemy-pytest-0.1.1 → sqlalchemy-pytest-0.2.0}/tests/test_database.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "sqlalchemy-pytest"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0"
|
|
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.
|
|
74
|
+
version = "0.2.0"
|
|
75
75
|
tag_format = "$version"
|
|
76
76
|
version_files = [
|
|
77
77
|
"sqlalchemy_pytest/__init__.py",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.0"
|
|
@@ -73,8 +73,10 @@ async def _sqlalchemy_create_database(
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
@pytest.fixture(scope="session")
|
|
76
|
-
def sqlalchemy_pytest_engine(sqlalchemy_pytest_database_url: str) -> AsyncEngine:
|
|
77
|
-
|
|
76
|
+
async def sqlalchemy_pytest_engine(sqlalchemy_pytest_database_url: str) -> AsyncEngine:
|
|
77
|
+
engine = create_async_engine(sqlalchemy_pytest_database_url)
|
|
78
|
+
yield engine
|
|
79
|
+
await engine.dispose()
|
|
78
80
|
|
|
79
81
|
|
|
80
82
|
@pytest.fixture(scope="session")
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|