depot/third_party/nixpkgs/pkgs/development/python-modules/sqlalchemy-utils/skip-database-tests.patch
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

34 lines
940 B
Diff

diff --git a/conftest.py b/conftest.py
index 4426e02..1f84096 100644
--- a/conftest.py
+++ b/conftest.py
@@ -73,17 +73,12 @@ def mysql_db_user():
@pytest.fixture
def postgresql_dsn(postgresql_db_user, postgresql_db_password, postgresql_db_host,
db_name):
- return 'postgresql://{}:{}@{}/{}'.format(
- postgresql_db_user,
- postgresql_db_password,
- postgresql_db_host,
- db_name
- )
+ pytest.skip()
@pytest.fixture
def mysql_dsn(mysql_db_user, db_name):
- return f'mysql+pymysql://{mysql_db_user}@localhost/{db_name}'
+ pytest.skip()
@pytest.fixture
@@ -121,8 +116,7 @@ def mssql_db_driver():
@pytest.fixture
def mssql_dsn(mssql_db_user, mssql_db_password, mssql_db_driver, db_name):
- return 'mssql+pyodbc://{}:{}@localhost/{}?driver={}'\
- .format(mssql_db_user, mssql_db_password, db_name, mssql_db_driver)
+ pytest.skip()
@pytest.fixture