-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code to use urllib.parse in parseQuery function
- Loading branch information
Showing
11 changed files
with
58 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
import unittest | ||
from pyrace.shared.config import getConfig | ||
|
||
|
||
class TestConfig(unittest.TestCase): | ||
def test_getConfig(self): | ||
config = getConfig() | ||
|
||
# Check if the configuration instance is not None | ||
self.assertIsNotNone(config) | ||
|
||
# Check if the configuration instance has the expected attributes | ||
self.assertTrue(hasattr(config, "EXTERNAL_HOST")) | ||
self.assertTrue(hasattr(config, "CERTIFICATE_FILE")) | ||
self.assertTrue(hasattr(config, "PRIVATE_KEY_FILE")) | ||
self.assertTrue(hasattr(config, "PUBLIC_KEY_FILE")) | ||
|
||
# Add more assertions as needed | ||
|
||
if __name__ == '__main__': | ||
unittest.main() | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import unittest | ||
from pyrace.shared import encryption | ||
|
||
|
||
class TestEncryption(unittest.TestCase): | ||
def test_verifyLegacyCipherSupport(self): | ||
|
||
try: | ||
encryption.verifyLegacyCipherSupport() | ||
except Exception as e: | ||
self.fail("verifyLegacyCipherSupport() raised an exception: " + str(e)) | ||
|
||
self.assertTrue(True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() | ||
|
||
if __name__ == "__main__": | ||
unittest.main() |