Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kasium committed Oct 30, 2023
1 parent cd2845e commit c68aa33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
PYTEST_DBURI=$(python test/ci_setup.py setup ${{ secrets.TEST_DBURI }})
echo "::add-mask::$PYTEST_DBURI"
export PYTEST_ADDOPTS="--dburi $PYTEST_DBURI --dropfirst"
pytest -vx --cov sqlalchemy_hana --cov-report html --cov-report xml test/
python test/ci_setup.py teardown "$PYTEST_DBURI" ${{ secrets.TEST_DBURI }}
pytest -v --cov sqlalchemy_hana --cov-report html --cov-report xml test/
python test/ci_setup.py teardown ${{ secrets.TEST_DBURI }} $PYTEST_DBURI
- name: run diff-cover
run: "diff-cover --config-file pyproject.toml coverage.xml"
2 changes: 1 addition & 1 deletion test/ci_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def teardown(dburi: str, test_dburi: str) -> None:
with closing(
dbapi.connect(url.hostname, url.port, url.username, url.password)
) as connection, closing(connection.cursor()) as cursor:
cursor.execute(f"DROP USER {test_user} CASCADE ")
cursor.execute(f"DROP USER {test_user} CASCADE")


if __name__ == "__main__":
Expand Down

0 comments on commit c68aa33

Please sign in to comment.