Comment en debug aanpassingen
This commit is contained in:
@@ -12,13 +12,11 @@ class ddOperApiTest(unittest.TestCase):
|
||||
def setUpClass(cls):
|
||||
global forkTestServerPid
|
||||
forkTestServerPid = forkTestServer()
|
||||
print("forkTestServer pid: %i" % forkTestServerPid)
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
global forkTestServerPid
|
||||
stopTestServer(forkTestServerPid)
|
||||
print("signal pid: %i" % forkTestServerPid)
|
||||
|
||||
def setUp(self):
|
||||
self.client = ddOperApi.ddOperApi(url="https://localhost:5000/dd-oper/2.0", checkssl=False)
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
#https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https
|
||||
|
||||
import json
|
||||
|
||||
from os import fork, kill
|
||||
@@ -12,6 +10,13 @@ from datetime import datetime
|
||||
from OpenSSL import crypto, SSL
|
||||
from flask import Flask
|
||||
|
||||
#
|
||||
# TODO: createCert verplaatsen zodat die ook beschikbaar is in de module.
|
||||
# Dan kan deze als client certificaat gebruikt worden en kan er
|
||||
# getest worden met client certificaat.
|
||||
# De extra subclass kan dan ook weg!
|
||||
#
|
||||
|
||||
class testServer(Flask):
|
||||
def __init__(self, name):
|
||||
super().__init__(__name__)
|
||||
|
Reference in New Issue
Block a user