Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrondel committed Jul 22, 2024
1 parent 2aa69a3 commit ccd6987
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_pqserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,14 @@ def test_flexible_metadata(client):
assert result["required_keys"] == ["values"]

response = client.post(
"/consdb/insert/latiss",
f"/consdb/insert/latiss/exposure/obs/2024032100003",
json={
"table": "exposure",
"values": {
"exposure_name": "AT_O_20240327_000002",
"controller": "O",
"day_obs": 20240327,
"seq_num": 2,
},
"obs_id": 2024032700002,
},
)
_assert_http_status(response, 200)
Expand All @@ -216,6 +214,7 @@ def test_flexible_metadata(client):
"message": "Data inserted",
"table": "cdb_latiss.exposure",
"instrument": "latiss",
"obs_id": 2024032100003,
}

response = client.post("/consdb/query", json={"query": "SELECT * FROM exposure ORDER BY day_obs;"})
Expand Down

0 comments on commit ccd6987

Please sign in to comment.