Skip to content

Commit

Permalink
Restyled by autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and cecille committed Jun 6, 2024
1 parent ce731b3 commit bd083d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python_testing/TestSpecParsingSupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,11 @@ def setup_class(self):
def test_build_xml_override(self):
# checks that the 1.3 spec (default) does not contain in-progress clusters and the TOT does
tot_xml_clusters, problems = build_xml_clusters(PrebuiltDataModelDirectory.kMaster)
asserts.assert_greater(len(set(tot_xml_clusters.keys()) - set(self.spec_xml_clusters.keys())), 0, "In progress dir does not contain any clusters not in 1.3")
asserts.assert_greater(len(set(tot_xml_clusters.keys()) - set(self.spec_xml_clusters.keys())),
0, "In progress dir does not contain any clusters not in 1.3")
# only the pulse width modulation cluster was removed post 1.3
asserts.assert_equal(set(self.spec_xml_clusters.keys()) - set(tot_xml_clusters.keys()), set([Clusters.PulseWidthModulation.id]), "There are some 1.3 clusters that are not included in the TOT spec")
asserts.assert_equal(set(self.spec_xml_clusters.keys()) - set(tot_xml_clusters.keys()),
set([Clusters.PulseWidthModulation.id]), "There are some 1.3 clusters that are not included in the TOT spec")

str_path = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'data_model', '1.3', 'clusters'))
string_override_check, problems = build_xml_clusters(str_path)
Expand Down

0 comments on commit bd083d4

Please sign in to comment.