Skip to content

Commit

Permalink
skip backup tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Nov 28, 2023
1 parent c030168 commit bd11651
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
# Set up 'ssh localhost' that is used in testing the backup command
# skipped for windows, as it doesn't support this setup or the backup command
- name: set up 'ssh localhost'
if: matrix.os != 'windows-latest'
run: |
.github/workflows/setup-ssh-localhost.sh
ssh -v localhost
Expand Down
7 changes: 7 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the CLI commands"""
import platform
from pathlib import Path

import pytest
Expand Down Expand Up @@ -187,6 +188,9 @@ def myimport(
assert "No errors found" in result.stdout


@pytest.mark.skipif(
platform.system() == "Windows", reason="Backup not supported on Windows"
)
@pytest.mark.parametrize(
"remote, verbosity",
[
Expand Down Expand Up @@ -246,6 +250,9 @@ def test_backup(temp_container, temp_dir, remote, verbosity):
assert "No errors found" in result.stdout


@pytest.mark.skipif(
platform.system() == "Windows", reason="Backup not supported on Windows"
)
def test_backup_repeated(temp_container, temp_dir):
"""Test the backup command repeated 3 times.
Expand Down

0 comments on commit bd11651

Please sign in to comment.