test for elements that are in SQLAlchemy Core, that they are also included in the fixtures above.
(self)
| 1793 | ] |
| 1794 | |
| 1795 | def test_all_present(self): |
| 1796 | """test for elements that are in SQLAlchemy Core, that they are |
| 1797 | also included in the fixtures above. |
| 1798 | |
| 1799 | """ |
| 1800 | need = set( |
| 1801 | cls |
| 1802 | for cls in all_hascachekey_subclasses( |
| 1803 | ignore_subclasses=[ |
| 1804 | Annotated, |
| 1805 | NoInit, |
| 1806 | SingletonConstant, |
| 1807 | TString, |
| 1808 | ] |
| 1809 | ) |
| 1810 | if "orm" not in cls.__module__ |
| 1811 | and "compiler" not in cls.__module__ |
| 1812 | and "dialects" not in cls.__module__ |
| 1813 | and issubclass( |
| 1814 | cls, |
| 1815 | ( |
| 1816 | ColumnElement, |
| 1817 | Selectable, |
| 1818 | LambdaElement, |
| 1819 | DQLDMLClauseElement, |
| 1820 | ), |
| 1821 | ) |
| 1822 | ) |
| 1823 | |
| 1824 | for fixture in self.fixtures + self.dont_compare_values_fixtures: |
| 1825 | case_a = fixture() |
| 1826 | for elem in case_a: |
| 1827 | for mro in type(elem).__mro__: |
| 1828 | need.discard(mro) |
| 1829 | |
| 1830 | is_false(bool(need), "%d Remaining classes: %r" % (len(need), need)) |
| 1831 | |
| 1832 | def test_compare_labels(self): |
| 1833 | for fixtures_, compare_values in [ |
nothing calls this directly
no test coverage detected