feat: add challenge and red-blue competitions across API and web
This commit is contained in:
parent
f5161d9add
commit
8fd3c4bb64
77 changed files with 5355 additions and 24 deletions
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
@ -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"
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue