feat: add challenge and red-blue competitions across API and web

This commit is contained in:
Joey Yakimowich-Payne 2025-10-01 06:49:09 -06:00
commit 8fd3c4bb64
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
77 changed files with 5355 additions and 24 deletions

View file

@ -0,0 +1,14 @@
from __future__ import annotations
from flask.testing import FlaskClient
class TestWebChallenges:
def test_list_and_detail(self, test_client_with_containers: FlaskClient):
# list
resp = test_client_with_containers.get("/api/web/challenges")
assert resp.status_code == 200
data = resp.get_json()
assert data["result"] == "success"

View file

@ -0,0 +1,13 @@
from __future__ import annotations
from flask.testing import FlaskClient
class TestWebRedBlueChallenges:
def test_list(self, test_client_with_containers: FlaskClient):
resp = test_client_with_containers.get("/api/web/red-blue-challenges")
assert resp.status_code == 200
data = resp.get_json()
assert data["result"] == "success"