Skip to content

Commit

Permalink
revert prior test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-D-Lewis committed Dec 12, 2024
1 parent 40d71d6 commit 2682982
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions tests/tests_unit/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,13 @@ def test_no_provider(config_schema, provider, full_name, default_fields):
assert full_name in config.model_dump()


@pytest.mark.parametrize(
"providers",
[
{
"local": {},
"existing": {},
},
{
"provider": "local",
"google_cloud_platform": {},
},
],
)
def test_multiple_providers(config_schema, providers):
def test_multiple_providers(config_schema):
config_dict = {
"project_name": "test",
**providers,
"local": {},
"existing": {},
}
msg = r"Only a single provider may be set. Multiple providers are set: "
msg = r"Multiple providers set: \['local', 'existing'\]"
with pytest.raises(ValidationError, match=msg):
config_schema(**config_dict)

Expand Down

0 comments on commit 2682982

Please sign in to comment.