Skip to content

Commit 5bfe65b

Browse files
committed
fix spec parsing test for tot default
1 parent 702f478 commit 5bfe65b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/python_testing/TestSpecParsingSupport.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,17 @@ def setup_class(self):
235235
def test_build_xml_override(self):
236236
# checks that the 1.3 spec (default) does not contain in-progress clusters and the TOT does
237237
tot_xml_clusters, problems = build_xml_clusters(PrebuiltDataModelDirectory.kMaster)
238-
asserts.assert_greater(len(set(tot_xml_clusters.keys()) - set(self.spec_xml_clusters.keys())),
238+
one_three_clusters, problems = build_xml_clusters(PrebuiltDataModelDirectory.k1_3)
239+
asserts.assert_greater(len(set(tot_xml_clusters.keys()) - set(one_three_clusters.keys())),
239240
0, "In progress dir does not contain any clusters not in 1.3")
240241
# only the pulse width modulation cluster was removed post 1.3
241-
asserts.assert_equal(set(self.spec_xml_clusters.keys()) - set(tot_xml_clusters.keys()),
242+
asserts.assert_equal(set(one_three_clusters.keys()) - set(tot_xml_clusters.keys()),
242243
set([Clusters.PulseWidthModulation.id]), "There are some 1.3 clusters that are not included in the TOT spec")
243244

244-
str_path = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'data_model', '1.3', 'clusters'))
245+
str_path = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'data_model', 'master', 'clusters'))
245246
string_override_check, problems = build_xml_clusters(str_path)
246247
asserts.assert_equal(string_override_check.keys(), self.spec_xml_clusters.keys(), "Mismatched cluster generation")
247248

248-
path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'data_model', '1.3', 'clusters')
249-
path_override_check, problems = build_xml_clusters(path)
250-
asserts.assert_equal(path_override_check.keys(), self.spec_xml_clusters.keys(), "Mismatched cluster generation")
251-
252249
with asserts.assert_raises(SpecParsingException):
253250
build_xml_clusters("baddir")
254251

0 commit comments

Comments
 (0)