Skip to content

Commit

Permalink
fix(test): backslashes needed for test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Dec 27, 2024
1 parent de4c6cc commit aaafda9
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"""

import sys
from pathlib import Path
from typing import Any

Expand Down Expand Up @@ -631,16 +632,26 @@ def test_ruamel(
installed_dependencies = deps_and_imports_map.keys()
imports = deps_and_imports_map.values()

if sys.platform == "win32":
contents = [
"ruamel.yaml-0.18.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4",
"ruamel\\yaml\\__init__.py,sha256=2t1h--HjEw1ll5f5Y90KY7zXf4_4V1z5mSIEgoDZ1-o,1920",
"ruamel\\yaml\\__pycache__\\__init__.cpython-38.pyc,,",
"ruamel\\yaml\\anchor.py,sha256=tuPKumHX6SstzrNylamMffqJvOwnPspP3_z2Nbaezj0,481",
]
else:
contents = [
"ruamel.yaml-0.18.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4",
"ruamel/yaml/__init__.py,sha256=2t1h--HjEw1ll5f5Y90KY7zXf4_4V1z5mSIEgoDZ1-o,1920",
"ruamel/yaml/__pycache__/__init__.cpython-38.pyc,,",
"ruamel/yaml/anchor.py,sha256=tuPKumHX6SstzrNylamMffqJvOwnPspP3_z2Nbaezj0,481",
]

for dependency_name in installed_dependencies:
_ = venv_manager.create_record(
site_packages_path=site_packages_path,
dependency_name=dependency_name,
contents=[
"ruamel.yaml-0.18.6.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4",
"ruamel/yaml/__init__.py,sha256=2t1h--HjEw1ll5f5Y90KY7zXf4_4V1z5mSIEgoDZ1-o,1920",
"ruamel/yaml/__pycache__/__init__.cpython-38.pyc,,",
"ruamel/yaml/anchor.py,sha256=tuPKumHX6SstzrNylamMffqJvOwnPspP3_z2Nbaezj0,481",
],
contents=contents,
)

source_files: list[Path] = []
Expand Down

0 comments on commit aaafda9

Please sign in to comment.