django_webapps_fullstack.test.test_django_server¶
Test if the Django server is running and properly configured with SSL settings
Classes
|
Class for the test cases to test if the Django Server is running including SSL tests |
- class django_webapps_fullstack.test.test_django_server.test_django_server(methodName='runTest')[source]¶
Bases:
ReadOnlyDjangoTestCaseClass for the test cases to test if the Django Server is running including SSL tests
- setUp()[source]¶
Set up test - this test doesn’t need Selenium, only the URL from config. Override parent setUp to skip Selenium WebDriver creation.
- test_server_is_running()[source]¶
Checks if the Django server is running by making a GET request to the specified URL. It expects a 200 status code in response, which indicates the server is running correctly.
- test_ssl_certificate_verification()[source]¶
Ensures that SSL certificate verification works correctly. If the certificate is invalid or untrusted, an SSLError will be raised.