File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 88from locust import task
99from locust .contrib .fasthttp import FastHttpUser
1010from pydantic import Field
11- from pydantic_settings import BaseSettings
11+ from pydantic_settings import BaseSettings , SettingsConfigDict
1212
1313logging .basicConfig (level = logging .INFO )
1414
2020
2121
2222class 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments