Skip to content

Commit c8175a8

Browse files
authored
Merge pull request #366 from radofuchs/behave_version_fix
LCORE-475: fix behave tests issue with new version
2 parents 7909ca0 + 2b90a95 commit c8175a8

File tree

6 files changed

+34
-13
lines changed

6 files changed

+34
-13
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dev = [
7070
"types-requests>=2.28.0",
7171
"ruff>=0.11.13",
7272
"aiosqlite",
73-
"behave==1.2.6",
73+
"behave>=1.3.0",
7474
"types-cachetools>=6.1.0.20250717",
7575
"build>=1.2.2.post1",
7676
"twine>=6.1.0",

tests/e2e/features/llm_interface.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: LLM interface tests
99

1010

1111
Scenario: Check if LLM responds to sent question
12-
Given the system is in default state
12+
Given The system is in default state
1313
When I ask question "Say hello"
1414
Then The status code of the response is 200
1515
And The response should have proper LLM response format

tests/e2e/features/rest_api.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: REST API tests
99

1010

1111
Scenario: Check if service report proper readiness state
12-
Given the system is in default state
12+
Given The system is in default state
1313
When I access endpoint "readiness" using HTTP GET method
1414
Then The status code of the response is 200
1515
And The body of the response has the following schema
@@ -27,7 +27,7 @@ Feature: REST API tests
2727

2828

2929
Scenario: Check if service report proper liveness state
30-
Given the system is in default state
30+
Given The system is in default state
3131
When I access endpoint "liveness" using HTTP GET method
3232
Then The status code of the response is 200
3333
And The body of the response has the following schema
@@ -43,14 +43,14 @@ Feature: REST API tests
4343

4444

4545
Scenario: Check if the OpenAPI endpoint works as expected
46-
Given the system is in default state
46+
Given The system is in default state
4747
When I access endpoint "openapi.json" using HTTP GET method
4848
Then The status code of the response is 200
4949
And The body of the response contains OpenAPI
5050

5151

5252
Scenario: Check if info endpoint is working
53-
Given the system is in default state
53+
Given The system is in default state
5454
When I access REST API endpoint "info" using HTTP GET method
5555
Then The status code of the response is 200
5656
And The body of the response contains name

tests/e2e/features/smoketests.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Feature: Smoke tests
99

1010

1111
Scenario: Check if the main endpoint is reachable
12-
Given the system is in default state
12+
Given The system is in default state
1313
When I access endpoint "/" using HTTP GET method
1414
Then The status code of the response is 200
1515
And Content type of response should be set to "text/html"

tests/e2e/features/steps/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from behave.runner import Context
55

66

7-
@given("the service is started locally")
7+
@given("The service is started locally")
88
def service_is_started_locally(context: Context) -> None:
99
"""Check the service status."""
1010
assert context is not None
1111

1212

13-
@given("the system is in default state")
13+
@given("The system is in default state")
1414
def system_in_default_state(context: Context) -> None:
1515
"""Check the default system state."""
1616
assert context is not None

uv.lock

Lines changed: 25 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)