Skip to content

Commit 6f79724

Browse files
committed
minor improvements to streamline workflow
1 parent 2f92346 commit 6f79724

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/performance/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ dashboards-up: ## Create Grafana dashboard for inspecting locust results. See da
7272
@locust-compose up
7373

7474

75-
dashboards-down:
75+
dashboards-down: ## stops and removes Grafana dashboard and Timescale postgress containers
7676
@locust-compose down
7777

7878
.PHONY: install-ci install-dev

tests/performance/locust_files/platform_ping_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from locust import task
99
from locust.contrib.fasthttp import FastHttpUser
1010
from pydantic import Field
11-
from pydantic_settings import BaseSettings
11+
from pydantic_settings import BaseSettings, SettingsConfigDict
1212

1313
logging.basicConfig(level=logging.INFO)
1414

@@ -20,6 +20,7 @@
2020

2121

2222
class MonitoringBasicAuth(BaseSettings):
23+
model_config = SettingsConfigDict(extra="ignore")
2324
SC_USER_NAME: str = Field(default=..., examples=["<your username>"])
2425
SC_PASSWORD: str = Field(default=..., examples=["<your password>"])
2526

tests/performance/locust_settings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# /// script
22
# requires-python = ">=3.11"
33
# dependencies = [
4+
# "faker",
45
# "locust",
6+
# "locust-plugins",
57
# "parse",
68
# "pydantic",
79
# "pydantic-settings",
@@ -64,9 +66,6 @@ def _get_settings_classes(file_path: Path) -> list[type[BaseSettings]]:
6466
if issubclass(obj, BaseSettings) and obj is not BaseSettings
6567
]
6668

67-
s = settings_classes[0]
68-
s.model_construct
69-
7069
return settings_classes
7170

7271

0 commit comments

Comments
 (0)