mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-14 22:53:17 +00:00
13cef67204
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/7 Co-authored-by: Inex Code <inex.code@selfprivacy.org> Co-committed-by: Inex Code <inex.code@selfprivacy.org>
17 lines
456 B
Python
17 lines
456 B
Python
# pylint: disable=redefined-outer-name
|
|
# pylint: disable=unused-argument
|
|
import json
|
|
import pytest
|
|
|
|
|
|
def test_get_api_version(authorized_client):
|
|
response = authorized_client.get("/api/version")
|
|
assert response.status_code == 200
|
|
assert "version" in response.get_json()
|
|
|
|
|
|
def test_get_api_version_unauthorized(client):
|
|
response = client.get("/api/version")
|
|
assert response.status_code == 200
|
|
assert "version" in response.get_json()
|