Skip to content

Commit

Permalink
Update expectations for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Mar 6, 2025
1 parent 5f1d036 commit f5cd041
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_deploy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import platform
import sys
import unittest
from unittest.mock import patch, Mock
Expand Down Expand Up @@ -456,12 +457,14 @@ def mock_check_output_side_effect(cmd, *args, **kwargs):
self.assertTrue(mock_is_fresh.called)
self.assertTrue(mock_check_output.called)

path_prefix = "C:/" if platform.system() == "Windows" else ""

self.assertEqual(
files['requirements'][0],
(
'dir-package @ file:///path/to/package ; '
f'dir-package @ file:///{path_prefix}path/to/package ; '
'python_version == "2.7" or python_version >= "3.4"\n'
'file-package @ file:///path/to/package.tar.gz ; '
f'file-package @ file:///{path_prefix}path/to/package.tar.gz ; '
'python_version == "2.7" or python_version >= "3.4"\n'
'package==0.0.0 ; '
'python_version == "2.7" or python_version >= "3.4"\n'
Expand Down

0 comments on commit f5cd041

Please sign in to comment.