File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 66import pytest
77from botocore import credentials
88from botocore .exceptions import ClientError
9- from hypothesis import given
10- from hypothesis .strategies import lists , text
119
1210from aws_gate import __version__
1311from aws_gate .constants import DEFAULT_GATE_BIN_PATH
@@ -131,12 +129,11 @@ def test_region_validation():
131129 assert not is_existing_region (region_name = "unknown-region-1" )
132130
133131
134- @given (text (), lists (text ()))
135- def test_execute (mocker , cmd , args ):
132+ def test_execute (mocker ):
136133 mock_output = mocker .MagicMock (stdout = b"output" )
137134 mocker .patch ("aws_gate.utils.subprocess.run" , return_value = mock_output )
138135
139- assert execute (cmd , args ) == "output"
136+ assert execute ("ls" , [ "-l" ] ) == "output"
140137
141138
142139def test_execute_environment (mocker ):
You can’t perform that action at this time.
0 commit comments