Skip to content

Commit

Permalink
fix:cpf_graph_test
Browse files Browse the repository at this point in the history
  • Loading branch information
khalsz committed Dec 12, 2024
1 parent d0aa3b9 commit 19c7e7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,4 +1089,4 @@ class ShotModel(SQLModel, table=True):

cpf_zmag_efit: Optional[float] = Field(alias="rad_mag_height_efit",
description="(Radii) Magnetic Axis height above Mid-Plane from EFIT Equilibrium \
for MAST and MAST-U")
for MAST and MAST-U")
6 changes: 3 additions & 3 deletions tests/api/test_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def test_query_shots_from_signals(client, override_get_db):
def test_query_cpf_summary(client, override_get_db):
query = """
query {
cpf_summary {
shot_summary {
description
}
}
Expand All @@ -166,8 +166,8 @@ def test_query_cpf_summary(client, override_get_db):
assert "errors" not in data

data = data["data"]
assert "cpf_summary" in data
assert len(data["cpf_summary"]) == 265
assert "shot_summary" in data
assert len(data["shot_summary"]) == 265


def test_query_scenarios(client, override_get_db):
Expand Down
2 changes: 1 addition & 1 deletion tests/api/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_get_cpf_summary(client, override_get_db):
response = client.get("json/cpf_summary")
data = response.json()
assert response.status_code == 200
assert len(data["items"]) == 50
assert len(data["items"]) == 0


def test_get_scenarios(client, override_get_db):
Expand Down

0 comments on commit 19c7e7c

Please sign in to comment.