Skip to content

Commit

Permalink
WIP Replace request with falcon 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MoessnerFabian(Group) committed Nov 5, 2024
1 parent bc29fd8 commit 1d98cf2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/connector/test_http_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def setup_method(self):
super().setup_method()
self.object.pipeline_index = 1
self.object.setup()
self.app = self.object.http_server.server.config.app
self.target = self.object.target

CONFIG: dict = {
Expand Down Expand Up @@ -109,6 +110,12 @@ def test_not_first_pipeline(self):
assert connector.http_server is None

def test_get_method_returns_200(self):
print('' )
import falcon
from falcon import testing
clientt = testing.TestClient(self.app)
a = clientt.simulate_get(url=f"{self.target}/json")
a = clientt.simulate_get('/json')
resp = requests.get(url=f"{self.target}/json", timeout=0.5)
assert resp.status_code == 200

Expand Down

0 comments on commit 1d98cf2

Please sign in to comment.