| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ def tearDownClass(cls): | |||
| 21 | 21 | cls.root.destroy() | |
| 22 | 22 | del cls.root | |
| 23 | 23 | ||
| 24 | + @unittest.skip('Dummy test') | ||
| 24 | 25 | def test_init(self): | |
| 25 | 26 | self.assertTrue(True) | |
| 26 | 27 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -230,16 +230,14 @@ def test_fetch_completions(self): | |||
| 230 | 230 | # For file completion, a large list containing all files in the path, | |
| 231 | 231 | # and a small list containing files that do not start with '.'. | |
| 232 | 232 | acp = self.autocomplete | |
| 233 | - small, large = acp.fetch_completions( | ||
| 234 | - '', ac.ATTRS) | ||
| 235 | - if hasattr(__main__, '__file__') and __main__.__file__ != ac.__file__: | ||
| 236 | - self.assertNotIn('AutoComplete', small) # See issue 36405. | ||
| 237 | 233 | ||
| 238 | - # Test attributes | ||
| 239 | - s, b = acp.fetch_completions('', ac.ATTRS) | ||
| 240 | - self.assertLess(len(small), len(large)) | ||
| 241 | - self.assertTrue(all(filter(lambda x: x.startswith('_'), s))) | ||
| 242 | - self.assertTrue(any(filter(lambda x: x.startswith('_'), b))) | ||
| 234 | + # Test current module (what='') attributes. | ||
| 235 | + small, large = acp.fetch_completions('', ac.ATTRS) | ||
| 236 | + if hasattr(__main__, '__file__') and __main__.__file__ != ac.__file__: | ||
| 237 | + self.assertNotIn('AutoComplete', small) # See gh-80586. | ||
| 238 | + self.assertLess(len(small), len(large)) # Not equal | ||
| 239 | + self.assertFalse(any(a[:1] == '_' for a in small)) | ||
| 240 | + self.assertTrue(any(a[:1] == '_' for a in large)) | ||
| 243 | 241 | ||
| 244 | 242 | # Test smalll should respect to __all__. | |
| 245 | 243 | with patch.dict('__main__.__dict__', {'__all__': ['a', 'b']}): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,6 +50,7 @@ def tearDownModule(): | |||
| 50 | 50 | root = dialog = None | |
| 51 | 51 | ||
| 52 | 52 | ||
| 53 | + @unittest.skip('Empty tests') | ||
| 53 | 54 | class ConfigDialogTest(unittest.TestCase): | |
| 54 | 55 | ||
| 55 | 56 | def test_deactivate_current_config(self): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -211,6 +211,7 @@ def test_searcher(self): | |||
| 211 | 211 | self.assertEqual(actual_pair, expected_pair) | |
| 212 | 212 | ||
| 213 | 213 | ||
| 214 | + @unittest.skip('Empty test') | ||
| 214 | 215 | class RMenuTest(unittest.TestCase): | |
| 215 | 216 | ||
| 216 | 217 | @classmethod | |
| Back | FazBrowse Home | New Git URL |
0 commit comments