Skip to content

Commit

Permalink
Fix: Build error
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Aug 14, 2023
1 parent c64f86c commit 7b1ee47
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def test_no_contents(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand All @@ -49,6 +51,8 @@ def test_only_base_class(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand All @@ -63,6 +67,8 @@ def test_only_module_name(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand All @@ -77,6 +83,8 @@ def test_single_constant(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand All @@ -101,6 +109,8 @@ def test_multiple_constants(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -133,6 +143,8 @@ def test_single_function(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -182,6 +194,8 @@ def test_multiple_functions(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -236,6 +250,8 @@ def test_single_class(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -387,6 +403,8 @@ def test_multiple_classes(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -471,6 +489,8 @@ def test_noisy_1(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -597,6 +617,8 @@ def test_noisy_2(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -762,6 +784,8 @@ def test_invalid_rst_format_1(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")

with self.assertRaises(ValueError):
result = analyzer.analyze(rst_files)
Expand All @@ -772,6 +796,8 @@ def test_invalid_rst_format_2(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")

with self.assertRaises(ValueError):
result = analyzer.analyze(rst_files)
Expand All @@ -782,6 +808,8 @@ def test_no_module(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand All @@ -795,6 +823,7 @@ def test_bpy_290_tweak(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.90")
result = analyzer.analyze(rst_files)

Expand Down Expand Up @@ -828,6 +857,7 @@ def test_bge_support(self):

analyzer = BaseAnalyzer()
analyzer.set_target("upbge")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -876,6 +906,7 @@ def test_bge_support_no_module(self):

analyzer = BaseAnalyzer()
analyzer.set_target("upbge")
analyzer.set_target_version("0.2.5")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 1)
Expand Down Expand Up @@ -958,6 +989,8 @@ def test_multiple_sections(self):
rst_files = [f"{self.data_dir}/{f}" for f in rst_files]

analyzer = BaseAnalyzer()
analyzer.set_target("blender")
analyzer.set_target_version("2.80")
result = analyzer.analyze(rst_files)

self.assertEqual(len(result.section_info), 2)
Expand Down

0 comments on commit 7b1ee47

Please sign in to comment.