multithreadTest.py
def runTest(self):
        """CONFORMANCE TEST - Testing PUT Request"""
        print("\nMaking a PUT Request")
        try:
            data = dict(
                key1='TEST',
                value1='TEST DATA'
            )
            r = requests.put(SERVER_URL + f"/test/test{1}.json",
                data=json.dumps(data),
                headers={'content-type': 'application/json'}
            )
            print(f"Status : {r.status_code} {r.reason}")
            print("Headers:", r.headers)
        except Exception as ex:
            print('Something went horribly wrong!', ex)
        finally:
            return
CONFORMANCE TEST - Testing PUT Request
CONFORMANCE TEST - Testing PUT Request
CONFORMANCE TEST - Testing PUT Request
def runTest(self):
        print("\nMaking a PUT Request")
        try:
            data = dict(
                key1='TEST',
                value1='TEST DATA'
            )
            r = requests.put(SERVER_URL + f"/test/test{1}.json",
                data=json.dumps(data),
                headers={'content-type': 'application/json'}
            )
            print(f"Status : {r.status_code} {r.reason}")
            print("Headers:", r.headers)
        except Exception as ex:
            print('Something went horribly wrong!', ex)
        finally:
            return
def runTest ( self ) : print ( "\nMaking a PUT Request" ) try : data = dict ( key1 = 'TEST' , value1 = 'TEST DATA' ) r = requests . put ( SERVER_URL + f"/test/test{1}.json" , data = json . dumps ( data ) , headers = { 'content-type' : 'application/json' } ) print ( f"Status : {r.status_code} {r.reason}" ) print ( "Headers:" , r . headers ) except Exception as ex : print ( 'Something went horribly wrong!' , ex ) finally : return
CONFORMANCE TEST - Testing PUT Request
CONFORMANCE TEST - Testing PUT Request
"""CONFORMANCE TEST - Testing PUT Request"""
self