fix(test/endpoints): add pytest coverage for all Microdot routes
This commit is contained in:
@@ -4,6 +4,15 @@ Endpoint tests that mimic web browser requests.
|
||||
Tests run against the device at 192.168.4.1
|
||||
"""
|
||||
|
||||
import os
|
||||
import pytest
|
||||
|
||||
if os.environ.get("LED_CONTROLLER_RUN_DEVICE_ENDPOINT_TESTS") != "1":
|
||||
pytest.skip(
|
||||
"Legacy device integration endpoint tests; enable explicitly to run.",
|
||||
allow_module_level=True,
|
||||
)
|
||||
|
||||
import requests
|
||||
import json
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user