Skip to content

Commit

Permalink
fix(merge conflict): trying to fix errors related to validation_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
basarbyz committed Sep 10, 2024
1 parent 4f39c9f commit e03e779
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ class TestSettings(BaseSettings):
"""
GATEWAY_URL: AnyHttpUrl = Field(default="http://localhost:8000",
validation_alias=["GATEWAY_URL"])
alias="GATEWAY_URL")
ORION_URL: AnyHttpUrl = Field(default="http://localhost:1026",
validation_alias=["ORION_URL"])
alias="ORION_URL")
MQTT_HOST: str = Field(default="localhost",
validation_alias=["MQTT_HOST"])
alias="MQTT_HOST")
MQTT_PORT: int = Field(default="1883",
validation_alias=["MQTT_PORT"])
alias="MQTT_PORT")
FIWARE_SERVICE: str = Field(default="gateway_test",
validation_alias=["FIWARE_SERVICE"])
alias="FIWARE_SERVICE")
FIWARE_SERVICEPATH: str = Field(default="/",
validation_alias=["FIWARE_PATH",
"FIWARE_SERVICEPATH",
"FIWARE_SERVICE_PATH"])
alias="FIWARE_SERVICEPATH")
model_config = SettingsConfigDict(env_file=find_dotenv(".env"), env_file_encoding="utf-8", case_sensitive=False, use_enum_values=True, allow_reuse=True)


Expand Down

0 comments on commit e03e779

Please sign in to comment.