Skip to content

Commit 4921d94

Browse files
revert
1 parent a096413 commit 4921d94

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

test/test_prototype_models.py

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

118118
problematic_weights = {}
119119
incorrect_params = []
120-
bad_names = []
121120
for w in weights_enum:
122121
missing_fields = fields - set(w.meta.keys())
123122
if missing_fields:
@@ -135,14 +134,8 @@ def test_schema_meta_validation(model_fn):
135134
if w.meta.get("num_params") != weights_enum.DEFAULT.meta.get("num_params"):
136135
incorrect_params.append(w)
137136

138-
for k, v in w.__members__.items():
139-
# Weights are constant members, thus should be all capital
140-
if isinstance(v, Weights) and not k.isupper():
141-
bad_names.append(k)
142-
143137
assert not problematic_weights
144138
assert not incorrect_params
145-
assert not bad_names
146139

147140

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

0 commit comments

Comments
 (0)