-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add compat function * test py3.12 on unit and integration * add test * pull image
- Loading branch information
Showing
5 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import pytest | ||
|
||
from conans.util.files import copytree_compat | ||
|
||
|
||
@pytest.fixture | ||
def source_dest_folders(tmp_path): | ||
source_folder = tmp_path / "source" | ||
dest_folder = tmp_path / "dest" | ||
source_folder.mkdir() | ||
dest_folder.mkdir() | ||
test_file = source_folder / "test_file.txt" | ||
test_file.write_text("Test content") | ||
return source_folder, dest_folder | ||
|
||
|
||
def test_copytree_compat(source_dest_folders): | ||
source_folder, dest_folder = source_dest_folders | ||
copytree_compat(str(source_folder), str(dest_folder)) | ||
assert (dest_folder / "test_file.txt").exists() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters