-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add generated tests for metrics endpoint
- Loading branch information
Showing
3 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
7 changes: 7 additions & 0 deletions
7
...oject_slug }}/src/{{ cookiecutter.project_slug }}/metrics/tests/test_metric_exposition.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from django.shortcuts import resolve_url | ||
from django.test import Client | ||
|
||
|
||
def test_metric_endpoint_returns_200(client: Client): | ||
response = client.get(resolve_url("prometheus_metrics")) | ||
assert response.status_code == 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters