File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 3131
3232import click
3333from click .testing import CliRunner
34+ import pytest
3435
3536from commoncode .fileutils import as_posixpath
3637from commoncode .fileutils import fsencode
@@ -246,3 +247,13 @@ def test_extractcode_command_can_extract_shallow(monkeypatch):
246247 '/top.zip-extract/some1.zip' ,
247248 ]
248249 assert sorted (expected ) == sorted (file_result )
250+
251+
252+ @pytest .mark .skipif (on_windows , reason = 'FIXME: Windows cannot extract long paths for now.' )
253+ def test_extractcode_command_can_extract_nuget (monkeypatch ):
254+ test_dir = test_env .get_test_loc ('extract_nuget' , copy = True )
255+ monkeypatch .setattr (click ._termui_impl , 'isatty' , lambda _ : True )
256+ runner = CliRunner ()
257+ result = runner .invoke (extract_cli .extractcode , ['--verbose' , test_dir ], catch_exceptions = False )
258+ assert result .exit_code == 0
259+ assert 'ERROR extracting' not in result .output
You can’t perform that action at this time.
0 commit comments