File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,18 @@ def test_no_databases_configuration() -> None:
6565
6666
6767def test_two_databases_configuration () -> None :
68- """Test if two databases configuration is checked."""
68+ """Test if two databases configuration is checked.
69+
70+ Verify that constructing DatabaseConfiguration with both PostgreSQL and
71+ SQLite configurations raises a validation error.
72+
73+ Asserts that passing both `postgres` and `sqlite` to DatabaseConfiguration
74+ triggers a `ValidationError` with message "Only one database configuration
75+ can be provided".
76+
77+ Raises:
78+ ValidationError: If more than one database configuration is provided.
79+ """
6980 d1 = PostgreSQLDatabaseConfiguration (db = "db" , user = "user" , password = "password" )
7081 d2 = SQLiteDatabaseConfiguration (db_path = "foo_bar_baz" )
7182 with pytest .raises (
You can’t perform that action at this time.
0 commit comments