The current integration test (scripts/test_final.py) is a raw Python script that manually runs requests.get() and prints the output. Refactor this into a structured test_integration.py file using the pytest framework, adding proper assert statements and a setup fixture to wait for the gateway to come online.
The current integration test (
scripts/test_final.py) is a raw Python script that manually runsrequests.get()and prints the output. Refactor this into a structuredtest_integration.pyfile using thepytestframework, adding properassertstatements and a setup fixture to wait for the gateway to come online.