Skip to content

Commit 30cb8b8

Browse files
committed
fix tests
1 parent 5f5696d commit 30cb8b8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docker/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ COPY . /src/actinia-cloudevent-plugin/
1818
RUN pip3 install --no-cache-dir -e /src/actinia-cloudevent-plugin/ && \
1919
# For tests:
2020
chmod a+x /src/actinia-cloudevent-plugin/tests_with_cloudevent_receiver.sh
21+
22+
WORKDIR /src/actinia-cloudevent-plugin
2123
# RUN make test
2224

2325
CMD ["gunicorn", "-b", "0.0.0.0:8088", "-w", "8", "--access-logfile=-", "-k", "gthread", "actinia_cloudevent_plugin.main:flask_app"]

tests/integrationtests/test_cloudevent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_post_cloudevent(self) -> None:
6969

7070
# Test post method
7171
resp = self.app.post(
72-
f"{self.URL_PREFIX}/",
72+
"/",
7373
data=json.dumps(cloudevent_json),
7474
content_type="application/json",
7575
)
@@ -100,7 +100,7 @@ def test_post_cloudevent(self) -> None:
100100
@pytest.mark.integrationtest
101101
def test_get_cloudevent(self) -> None:
102102
"""Test the get method of the / endpoint."""
103-
resp = self.app.get(f"{self.URL_PREFIX}/")
103+
resp = self.app.get("/")
104104
assert isinstance(
105105
resp,
106106
Response,

0 commit comments

Comments
 (0)