Download tests/loginput/loginput_test_suite.py from ineso22/Mozdef: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/ineso22/Mozdef/resolve/main/tests/loginput/loginput_test_suite.py
- Command line
-
hf download hf://ineso22/Mozdef/tests/loginput/loginput_test_suite.py
-
curl -L -o loginput_test_suite.py https://huggingface.co/ineso22/Mozdef/resolve/main/tests/loginput/loginput_test_suite.py
555 Bytes
| import os | |
| from mozdef_util.utilities.dot_dict import DotDict | |
| import mock | |
| from configlib import OptionParser | |
| from tests.http_test_suite import HTTPTestSuite | |
| class LoginputTestSuite(HTTPTestSuite): | |
| def setup(self): | |
| sample_config = DotDict() | |
| sample_config.configfile = os.path.join(os.path.dirname(__file__), 'index.conf') | |
| OptionParser.parse_args = mock.Mock(return_value=(sample_config, {})) | |
| from loginput import index as loginput_index | |
| self.application = loginput_index.application | |
| super().setup() | |