Skip to content

Commit

Permalink
skip for postgres on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Feb 11, 2024
1 parent 7533f5e commit df42561
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
from cashu.core.migrations import backup_database
from cashu.core.settings import settings
from cashu.mint.ledger import Ledger
from tests.helpers import is_github_actions
from tests.helpers import is_github_actions, is_postgres


@pytest.mark.asyncio
@pytest.mark.skipif(is_github_actions, reason="Fails on GitHub Actions")
@pytest.mark.skipif(
is_github_actions and is_postgres,
reason=(
"Fails on GitHub Actions because pg_dump is not the same version as postgres"
),
)
async def test_backup_db_migration(ledger: Ledger):
settings.db_backup_path = "./test_data/backups/"
filepath = await backup_database(ledger.db, 999)
Expand Down

0 comments on commit df42561

Please sign in to comment.