Comment en debug aanpassingen
This commit is contained in:
@@ -12,13 +12,11 @@ class ddOperApiTest(unittest.TestCase):
|
|||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
global forkTestServerPid
|
global forkTestServerPid
|
||||||
forkTestServerPid = forkTestServer()
|
forkTestServerPid = forkTestServer()
|
||||||
print("forkTestServer pid: %i" % forkTestServerPid)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
global forkTestServerPid
|
global forkTestServerPid
|
||||||
stopTestServer(forkTestServerPid)
|
stopTestServer(forkTestServerPid)
|
||||||
print("signal pid: %i" % forkTestServerPid)
|
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.client = ddOperApi.ddOperApi(url="https://localhost:5000/dd-oper/2.0", checkssl=False)
|
self.client = ddOperApi.ddOperApi(url="https://localhost:5000/dd-oper/2.0", checkssl=False)
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
#https://blog.miguelgrinberg.com/post/running-your-flask-application-over-https
|
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from os import fork, kill
|
from os import fork, kill
|
||||||
@@ -12,6 +10,13 @@ from datetime import datetime
|
|||||||
from OpenSSL import crypto, SSL
|
from OpenSSL import crypto, SSL
|
||||||
from flask import Flask
|
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):
|
class testServer(Flask):
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
super().__init__(__name__)
|
super().__init__(__name__)
|
||||||
|
Reference in New Issue
Block a user