Skip to content

Commit

Permalink
skip help test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pjob committed Mar 6, 2024
1 parent be2251c commit 3f1d23f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Empty file modified tests_e2e/config/malformatted_config.toml
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion tests_e2e/test_error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def test_error_traceback_disabled_without_debug(snowcli, test_root_path):
traceback_msg = "Traceback (most recent call last)"
config_path = test_root_path / "config" / "malformatted_config.toml"
os.chmod(config_path, 0o700)
os.chmod(config_path, 0o600)

result = subprocess.run(
[
Expand Down
6 changes: 4 additions & 2 deletions tests_e2e/test_installation.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import platform
import subprocess
import sys
from pathlib import Path

import pytest


@pytest.mark.e2e
@pytest.mark.skipif(
platform.system() == "Windows", reason="Snapshot comparison issues on Windows"
)
def test_snow_help(snowcli, snapshot):
print(f"xxx encoding: {sys.stdout.encoding}")
output = subprocess.check_output([snowcli, "--help"], encoding="utf-8")
snapshot.assert_match(output)

Expand Down

0 comments on commit 3f1d23f

Please sign in to comment.