Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Skip as_posix test except on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
markbruning committed Sep 28, 2023
1 parent 4a7e925 commit 442b28e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/deploments/test_steps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
from pathlib import Path, PurePath, PurePosixPath

import boto3
Expand Down Expand Up @@ -46,8 +47,8 @@ def tmp_files_win(tmp_path: Path):
"testfile1.txt",
"testfile2.txt",
"testfile3.txt",
"testdir1\\testfile4.txt",
"testdir2\\testfile5.txt",
r"testdir1\testfile4.txt",
r"testdir2\testfile5.txt",
]

for file in files:
Expand Down Expand Up @@ -95,6 +96,7 @@ def test_push_to_s3(s3_setup, tmp_files, mock_aws_credentials):
assert set(object_keys) == set(expected_keys)


@pytest.mark.skipif(sys.platform != "win32", reason="requires Windows")
def test_push_to_s3_as_posix(s3_setup, tmp_files_win, mock_aws_credentials):
s3, bucket_name = s3_setup
folder = "my-project"
Expand Down

0 comments on commit 442b28e

Please sign in to comment.