-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add coverage tests and Python 3.12 SSL compatibility fixes #1457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
685f0b8
d99aba9
e45fcbb
2ffce4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -117,7 +117,8 @@ def create_tcp_socket(host, port, timeout): | |||||||||
| return None | ||||||||||
|
|
||||||||||
| try: | ||||||||||
| socket_connection = ssl.wrap_socket(socket_connection) | ||||||||||
| context = ssl.create_default_context() | ||||||||||
|
||||||||||
| context = ssl.create_default_context() | |
| context = ssl.create_default_context() | |
| context.check_hostname = False | |
| context.verify_mode = ssl.CERT_NONE |
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <table><graph_html>/*css*/</table>datetargetmodule_nameportlogsjson_event<tr>nowx</tr></table><div id="json_length">1</div><p class="footer">Software Details: OWASP Nettacker version 1.0 [beta] in now ScanID: scan-id</p><script>/*js*/</script> | ||
theanant404 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,75 @@ | ||||||
| from unittest.mock import MagicMock, patch | ||||||
|
||||||
| from unittest.mock import MagicMock, patch | |
| from unittest.mock import patch |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,289 @@ | ||||||||||
| """ | ||||||||||
| Comprehensive tests for TemplateLoader including parse, format, and load methods. | ||||||||||
| """ | ||||||||||
|
|
||||||||||
| import pytest | ||||||||||
| from pathlib import Path | ||||||||||
| from unittest.mock import MagicMock, patch, mock_open | ||||||||||
| import yaml | ||||||||||
|
Comment on lines
+6
to
+8
|
||||||||||
| from pathlib import Path | |
| from unittest.mock import MagicMock, patch, mock_open | |
| import yaml | |
| from unittest.mock import MagicMock, patch, mock_open |
Uh oh!
There was an error while loading. Please reload this page.