Skip to content

Commit ac4b47c

Browse files
committed
Adjust tests to FastAPI changes
1 parent 0c782c0 commit ac4b47c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/test_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
SRPMBuildModel,
1717
)
1818
from packit_service.service import urls
19-
from packit_service.service.app import packit_as_a_service as application
19+
from packit_service.service.app import flask_app as application
2020
from packit_service.service.urls import (
2121
get_copr_build_info_url,
2222
get_srpm_build_info_url,
@@ -118,7 +118,7 @@ def test_get_srpm_logs(client):
118118

119119

120120
def test_system_api(client):
121-
response = client.get("/api/system")
121+
response = client.get("/system")
122122
assert response.status_code == 200
123123
response_data = response.json
124124
for package in ["ogr", "packit", "specfile", "packit_service"]:

tests_openshift/service/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import pytest
55

6-
from packit_service.service.app import packit_as_a_service as application
6+
from packit_service.service.app import flask_app as application
77

88

99
@pytest.fixture

0 commit comments

Comments
 (0)