Skip to content

Commit

Permalink
Fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtsuk committed Jun 27, 2023
1 parent 6fc749b commit 8b6349d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions snuba/admin/static/production_queries/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ function ProductionQueries(props: { api: Client }) {
<div>
<form>
<h2>Run a SnQL Query</h2>
<p>Currently, we only support queries with project_id = 1</p>
<div>
<textarea
spellCheck={false}
Expand Down
1 change: 1 addition & 0 deletions tests/admin/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ def mock_record(user: Any, action: Any, data: Any, notify: Any) -> None:
assert auditlog_records.pop()


@pytest.mark.redis_db
def test_prod_snql_query_invalid_dataset(admin_api: FlaskClient) -> None:
response = admin_api.post(
"/production_snql_query", data=json.dumps({"dataset": "", "query": ""})
Expand Down

0 comments on commit 8b6349d

Please sign in to comment.