Skip to content

Commit 5effa36

Browse files
authored
Adding back the capitalization test
1 parent 4921d94 commit 5effa36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_prototype_models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def test_schema_meta_validation(model_fn):
117117

118118
problematic_weights = {}
119119
incorrect_params = []
120+
bad_names = []
120121
for w in weights_enum:
121122
missing_fields = fields - set(w.meta.keys())
122123
if missing_fields:
@@ -133,9 +134,12 @@ def test_schema_meta_validation(model_fn):
133134
else:
134135
if w.meta.get("num_params") != weights_enum.DEFAULT.meta.get("num_params"):
135136
incorrect_params.append(w)
137+
if not w.name.isupper():
138+
bad_names.append(w)
136139

137140
assert not problematic_weights
138141
assert not incorrect_params
142+
assert not bad_names
139143

140144

141145
@pytest.mark.parametrize("model_fn", TM.get_models_from_module(models))

0 commit comments

Comments
 (0)