Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Coelho committed Sep 6, 2024
1 parent 870658e commit 4beba48
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/conf_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def my_conn(request, my_dsn, my_driver):
def my_db(my_conn, queries):
"""Build the test database."""
create_user_blogs(my_conn, queries)
fill_user_blogs(my_conn, "mysql")
fill_user_blogs(my_conn, queries)
yield my_conn
drop_user_blogs(my_conn, queries)

Expand Down
2 changes: 1 addition & 1 deletion tests/conf_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# yuk… hide sync/async

def execute_any(conn, queries, name):
utils.log.warning(f"executing: {name}")
utils.log.debug(f"executing: {name}")
f = queries.f(name)
if queries.is_async:
return utils.run_async(f(conn))
Expand Down
2 changes: 0 additions & 2 deletions tests/conf_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
@pytest.fixture
def li_dbpath(tmpdir):
db_path = str(Path(tmpdir.strpath) / "blogdb.db")
utils.log.warning(f"path = {db_path}")
yield db_path

@pytest.fixture
def li_db(rconn, queries):
utils.log.warning("sqlite creating blogdb…")
create_user_blogs(rconn, queries)
fill_user_blogs(rconn, queries)
yield rconn
Expand Down

0 comments on commit 4beba48

Please sign in to comment.