Skip to content

Commit

Permalink
windows made me unhappy
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrako committed Sep 22, 2023
1 parent b2d0064 commit 6de541f
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions tests/utils/archives_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,24 +208,37 @@ def fixture_unsupported_archive(request, tmp_path):
[
pytest.param(
False, False,
('toplevel', 'toplevel/recursive.zip'),
(
'toplevel',
os.path.join('toplevel', 'recursive.zip'),
),
id='recursive_false_remove_finished_false',
),
pytest.param(
False, True,
('toplevel', 'toplevel/recursive.zip'),
(
'toplevel',
os.path.join('toplevel', 'recursive.zip'),
),
id='recursive_false_remove_finished_true',
),
pytest.param(
True, False,
(
'toplevel', 'toplevel/recursive.zip', 'toplevel/recursive',
'toplevel/recursive/test.file',
'toplevel',
os.path.join('toplevel', 'recursive.zip'),
os.path.join('toplevel', 'recursive'),
os.path.join('toplevel', 'recursive', 'test.file'),
),
id='recursive_true_remove_finished_false',
),
pytest.param(
True, True,
(
'toplevel',
os.path.join('toplevel', 'recursive'),
os.path.join('toplevel', 'recursive', 'test.file'),
),
('toplevel', 'toplevel/recursive', 'toplevel/recursive/test.file'),
id='recursive_true_remove_finished_true',
),
Expand Down Expand Up @@ -314,25 +327,37 @@ def test_extract_unsupported_archive_destination_path_None(
[
pytest.param(
False, False,
('toplevel', 'toplevel/recursive.zip'),
(
'toplevel',
os.path.join('toplevel', 'recursive.zip'),
),
id='recursive_false_remove_finished_false',
),
pytest.param(
False, True,
('toplevel', 'toplevel/recursive.zip'),
(
'toplevel',
os.path.join('toplevel', 'recursive.zip'),
),
id='recursive_false_remove_finished_true',
),
pytest.param(
True, False,
(
'toplevel', 'toplevel/recursive.zip', 'toplevel/recursive',
'toplevel/recursive/test.file',
'toplevel',
os.path.join('toplevel', 'recursive.zip'),
os.path.join('toplevel', 'recursive'),
os.path.join('toplevel', 'recursive', 'test.file'),
),
id='recursive_true_remove_finished_false',
),
pytest.param(
True, True,
('toplevel', 'toplevel/recursive', 'toplevel/recursive/test.file'),
(
'toplevel',
os.path.join('toplevel', 'recursive'),
os.path.join('toplevel', 'recursive', 'test.file'),
),
id='recursive_true_remove_finished_true',
),
],
Expand Down

0 comments on commit 6de541f

Please sign in to comment.