You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#TODO(kladar): Maybe gridstatus gets a CLI in the future for things like this.
#NB: This is for running a single test without having to fully specify the
# path and the pytest command.
# Usage: make test-one-off market=MARKET test=TEST_NAME
# Example: make test-one-off market=pjm test=test_get_load_forecast_5_min_latest
.PHONY: test-one-off
test-one-off:
#NB: First two blocks are for error checking.
ifndefmarket
$(error market parameter is required. Usage: make test-one-off market=MARKET test=TEST_NAME)
endif
ifndeftest
$(error test parameter is required. Usage: make test-one-off market=MARKET test=TEST_NAME)
endif
#NB: This puts the market in the right capitalization for the path. Ercot is not ALL CAPS like the other market test classes: TestErcot vs TestCAISO, etc.
ifeq ($(market),ercot)
uv run pytest -vvv gridstatus/tests/source_specific/test_$(market).py::TestErcot::$(test)