MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / test_valid_command

Method test_valid_command

tests/test_interactive_mode.py:134–143  ·  view source on GitHub ↗

Checks valid command by running mssql-cli executable in repo

()

Source from the content-addressed store, hash-verified

132 @staticmethod
133 @pytest.mark.timeout(60)
134 def test_valid_command():
135 """
136 Checks valid command by running mssql-cli executable in repo
137 """
138 if sys.platform == 'win32':
139 exe_name = 'mssql-cli.bat'
140 else:
141 exe_name = 'mssql-cli'
142
143 assert is_command_valid([os.path.join(utility.ROOT_DIR, exe_name), '--version'])
144
145 @staticmethod
146 @pytest.mark.timeout(60)

Callers

nothing calls this directly

Calls 1

is_command_validFunction · 0.90

Tested by

no test coverage detected